On 8-11-2011 23:19, MrSmile wrote:
Hi people!
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.


Tamer

sys.argv


Irmen

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

Reply via email to