os.system vs. Py2Exe

Bengt Richter bokr at oz.net
Wed Sep 29 13:56:12 EDT 2004


On 28 Sep 2004 23:46:34 -0700, export at hope.cz (Lad) wrote:
[...]
>.txt file is associated with a propper application( Notepad.txt). AS I
>said above, with os.startfile the file is open in Notepad.txt but not
>if I use os.system. I can not use os.startfile, because it does not
>wait until .txt file is closed
Just curious, what happened when you tried specifying the full absolute path to your
.txt file when calling os.system? e.g.
    filename = 'something.txt' # for example
    os.system(os.path.abspath(filename))
?

Regards,
Bengt Richter



More information about the Python-list mailing list