os.system vs. Py2Exe

Lad export at hope.cz
Fri Oct 15 10:50:28 EDT 2004


"Michael P. Dubner" <dubnerm-news at mail.ru> wrote in message news:<mailman.4536.1097186371.5135.python-list at python.org>...
> Lad wrote:
> 
> >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
> >
> >Any help would be appreciated.
> >Lad
> >  
> >
> Check if
> os.system('start /wait File.txt')
> is working under Win9x.
> It's for sure will work under WinNT+

os.system('start /wait File.txt') WORKS!! Thanks a lot
Lad



More information about the Python-list mailing list