Dne 8.11.2011 23:36, MrSmile napsal(a):
Thank you all, that was it that I was searching for you.
Except that most likely it wasn't the right answer. Take a look at
http://docs.python.org/library/argparse.html (or optparse, if you are on
Python < 2.7).
Best,
Matěj
--
http://mail.python.org/
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 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 execut
On 08Nov2011 23:19, MrSmile 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 script
On Tue, Nov 8, 2011 at 2:19 PM, 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 t
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
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 b