How to run a python script with a configuration file at command line ?

Jean-Michel Pichavant jeanmichel at sequans.com
Thu Jun 3 12:50:27 EDT 2010


Andreas Jung wrote:
> optparse 
>
> is your friend.
>
> -aj
>
> 2010/6/3 steph_awk <stephane.larochelle at gmail.com 
> <mailto: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
>
>
http://docs.python.org/library/configparser.html

JM



More information about the Python-list mailing list