os.system vs. Py2Exe
export at hope.cz
Tue Sep 28 21:07:27 CEST 2004
gjbaker at usa.com (Greg) wrote in message news:<77ce170c.0409280647.7e98e76d at posting.google.com>...
> export at hope.cz (Lad) wrote in message news:<81a41dd.0409280200.1a74edd1 at posting.google.com>...
> > 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
> Did you install the python dll as well?
Yes, I installed all files( I think) because everything else works.
Only os.system does NOT.
I use os.system to open txt file.I use it like os.system('Myfile.txt')
When I use os.startfile instead of os.system it works well.
More information about the Python-list