How to run a python script with a configuration file at command line ?
Andreas Jung
lists at zopyx.com
Thu Jun 3 12:46:19 EDT 2010
optparse
is your friend.
-aj
2010/6/3 steph_awk <stephane.larochelle at gmail.com>
> I have been searching for quite some times without success.
>
> I have a python script that needs to start from command line and it
> should have a config file to fill out the detais (itis one program,
> and many possible configurations).
>
> something as simple as PHP would be nice %> ./PHPscript -c configfile
>
> is there such a thing in Python?
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100603/a6c6bd80/attachment-0001.html>
More information about the Python-list
mailing list