Execute a method in a file in an egg

Sebastien Douche sdouche at gmail.com
Wed Aug 24 14:22:12 CEST 2011


On Wed, Aug 24, 2011 at 12:04, Gabriel Genellina <gagsl-py2 at yahoo.com.ar> wrote:
>> Is there a way to do this from the command line? Thanks.
>
> Something like this?
>
> python -c "import the.module;the.module.someclass().method(arguments)"

Or with console_scripts option in setup.py.


-- 
Sebastien Douche <sdouche at gmail.com>
Twitter : @sdouche



More information about the Python-list mailing list