Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12137

Re: Execute a method in a file in an egg

From "Gabriel Genellina" <gagsl-py2@yahoo.com.ar>
Subject Re: Execute a method in a file in an egg
Date 2011-08-24 07:04 -0300
References <ca878c7e-3626-4074-a53a-4a2d7130c414@b11g2000vbz.googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.383.1314180119.27778.python-list@python.org> (permalink)

Show all headers | View raw


En Tue, 23 Aug 2011 13:14:06 -0300, RVince <rvince99@gmail.com> escribió:

> 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)"

-- 
Gabriel Genellina

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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