How to run in background?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • billie

    #1

    How to run in background?

    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

  • Gabriel Genellina

    #2
    Re: How to run in background?

    At Monday 25/9/2006 09:02, billie wrote:
    >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=myscrip t.py to windows=myscrip t.py (or maybe
    noconsole=myscr ipt.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!


    Comment

    • billie

      #3
      Re: How to run in background?

      I'm sorry. I tried with "windows=myscri pt.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. :-\

      Comment

      • Fredrik Lundh

        #4
        Re: How to run in background?

        billie wrote:
        I'm sorry. I tried with "windows=myscri pt.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>

        Comment

        Working...