os.system vs. Py2Exe
Peter L Hansen
peter at engcorp.com
Wed Sep 29 06:53:29 EDT 2004
Lad wrote:
> Peter Hansen <peter at engcorp.com> wrote in message news:<Rd2dneVBGfQrXMTcRVn-jQ at powergate.ca>...
>
>>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,
>>
>>What operating system is the other computer running?
>
> The other Operating system( that does not work with os.system) is Windows 98
That's the source of your problem. Win98 doesn't work the way
XP/NT does, and you *cannot* use os.system() in this way to
get the expected behaviour. Find another approach... maybe
read the registry entries for .TXT files and launch NotePad
directly...
-Peter
More information about the Python-list
mailing list