How to run in background?

B

billie

Hi all. I know that it's possible to automatically run a Python program
in background by giving it the "pyw" extension.
This is useful when I release a source ditribution of my program.
How could it be possible to do the same thing with an .exe file
compiled with py2exe extension? Do I have to write a batch script
separately?

Thanks in advance
 
G

Gabriel Genellina

Hi all. I know that it's possible to automatically run a Python program
in background by giving it the "pyw" extension.
This is useful when I release a source ditribution of my program.
How could it be possible to do the same thing with an .exe file
compiled with py2exe extension? Do I have to write a batch script
separately?

I don't remember the details, but in your setup.py replace:
console=myscript.py to windows=myscript.py (or maybe
noconsole=myscript.py? I dont remember, but look at the distutils docs)



Gabriel Genellina
Softlab SRL





__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas
 
B

billie

I'm sorry. I tried with "windows=myscript.py" but it doesn't seem to
work.
I really don't know where find this information that's extremely
important for me.
I googled a lot but I didn't found a solution for my problem. :-\
 
F

Fredrik Lundh

billie said:
I'm sorry. I tried with "windows=myscript.py" but it doesn't seem to
work.

it does work, so you've probably made some simple mistake. figuring
out what that is is a bit hard if you don't provide more information,
though.

can you perhaps post (the relevant portions of) your setup.py file ?

</F>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,265
Messages
2,571,069
Members
48,771
Latest member
ElysaD

Latest Threads

Top