os.system vs. Py2Exe

Thomas Guettler guettli at thomas-guettler.de
Tue Sep 28 13:22:50 CEST 2004


Am Tue, 28 Sep 2004 03:00:23 -0700 schrieb Lad:

> I used Py2exe to compile my script( I use XP).
> The compiled script works OK on my XP where Python is installed.
> But when I install the compiled exe to another computer,
>  
> os.system 
> 
> causes the following  error:
> Bad file or command name

Hi,

What do you execute with os.system?

If the script you execute startswith
#!INTERPRETER
you might have trouble. I don't think this
is well supported under windows.

Try this: os.system("INTERPRETER SCRIPT") 


Regards,
 Thomas




More information about the Python-list mailing list