getting command line in python

MrSmile no at mail.de
Tue Nov 8 17:19:13 EST 2011


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



More information about the Python-list mailing list