Run Python app at startup

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Mar 3 08:15:27 CET 2008


En Sun, 02 Mar 2008 19:37:35 -0200, SMALLp <pofuk at email.t-com.hr> escribi�:

> Hy.
> I create simple application. Yust an windows and "compile" it with
> py2exe. I add registry  value
> reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run  
> /v
> MyApp /t REG_SZ /d C:\myapp.exe /f'
>
> And it wont start. When i use console instead od window in py2exe i get
> console opend but it closes.

I'd check in this order:

python prog.py
Then, use console=... in setup.py, generate prog.exe
Open a cmd window and execute prog.exe (from the dist directory)
Repeat using window=... in setup.py

That whole sequence works fine using on my WinXP SP2 + Python 2.5.1  
+ wxPython 2.8.7.1

-- 
Gabriel Genellina




More information about the Python-list mailing list