Thank you all, that was it that I was searching for you.

Tamer

Am 08.11.2011 23:32, schrieb Cameron Simpson:
> On 08Nov2011 23:19, MrSmile <n...@mail.de> wrote:
> | I am looking for a way to get the command line in the script.
> | 
> | Let us say I am in the folder "/tmp" okay!
> | 
> | now from /tmp I execute in the console this:
> | python /home/tamer/MyApp/MyScript.py
> | 
> | in the app itself, I want to grep the path and the scriptname itself,
> | like: /home/tamer/MyApp is being somewhere available.
> 
> Have you looked in sys.argv[0]?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to