Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #12141
| References | <ca878c7e-3626-4074-a53a-4a2d7130c414@b11g2000vbz.googlegroups.com> <op.v0pp97zmx6zn5v@lepton> |
|---|---|
| From | Sebastien Douche <sdouche@gmail.com> |
| Date | 2011-08-24 14:22 +0200 |
| Subject | Re: Execute a method in a file in an egg |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.388.1314188573.27778.python-list@python.org> (permalink) |
On Wed, Aug 24, 2011 at 12:04, Gabriel Genellina <gagsl-py2@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@gmail.com> Twitter : @sdouche
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Execute a method in a file in an egg RVince <rvince99@gmail.com> - 2011-08-23 09:14 -0700 Re: Execute a method in a file in an egg "Gabriel Genellina" <gagsl-py2@yahoo.com.ar> - 2011-08-24 07:04 -0300 Re: Execute a method in a file in an egg Sebastien Douche <sdouche@gmail.com> - 2011-08-24 14:22 +0200
csiph-web