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


Groups > comp.lang.python > #12100 > unrolled thread

Execute a method in a file in an egg

Started byRVince <rvince99@gmail.com>
First post2011-08-23 09:14 -0700
Last post2011-08-24 14:22 +0200
Articles 3 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  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

#12100 — Execute a method in a file in an egg

FromRVince <rvince99@gmail.com>
Date2011-08-23 09:14 -0700
SubjectExecute a method in a file in an egg
Message-ID<ca878c7e-3626-4074-a53a-4a2d7130c414@b11g2000vbz.googlegroups.com>
Is there a way to do this from the command line? Thanks.

[toc] | [next] | [standalone]


#12137

From"Gabriel Genellina" <gagsl-py2@yahoo.com.ar>
Date2011-08-24 07:04 -0300
Message-ID<mailman.383.1314180119.27778.python-list@python.org>
In reply to#12100
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

[toc] | [prev] | [next] | [standalone]


#12141

FromSebastien Douche <sdouche@gmail.com>
Date2011-08-24 14:22 +0200
Message-ID<mailman.388.1314188573.27778.python-list@python.org>
In reply to#12100
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web