py2exe-users

Hi all!
Really nice to have py2exe to make me a Service out of my Python app :o)
BUT *why* am I explicitly stopped from using start/stop of the Service from the
cmd prompt?
WHAT can I say in setup.py (if anything) to enable me to do just that?
OR do I have to hack py2exe? (Me not like..)
//Maria

> Hi all!
> Really nice to have py2exe to make me a Service out of my
> Python app :o)
>
> BUT *why* am I explicitly stopped from using start/stop of
> the Service from the
> cmd prompt?
> WHAT can I say in setup.py (if anything) to enable me to do just that?
> OR do I have to hack py2exe? (Me not like..)
You can set a 'cmdline_style' attribute on the service target - set it to
'pywin32' - something like:
myservice = Target(
modules = ["MyService"],
cmdline_style = 'pywin32',
)
You can even set it to 'custom' - but you will have to read the
implementation for that :)
Mark.

MaR wrote:
> Hi all!
> Really nice to have py2exe to make me a Service out of my Python app :o)
>
> BUT *why* am I explicitly stopped from using start/stop of the Service from the
> cmd prompt?
> WHAT can I say in setup.py (if anything) to enable me to do just that?
> OR do I have to hack py2exe? (Me not like..)
>
> //Maria
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
I just use net start <service>, net stop <service> and they work fine.
-Larry Bates

Community

Help

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

CountryState

JavaScript is required for this form.

I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. I understand that I can withdraw my consent at any time. Please refer to our Privacy Policy or Contact Us for more details