running non-python progs from python
Diez B. Roggisch
deets_noospaam at web.de
Tue Dec 9 17:22:00 EST 2003
> Here is the code used to call it from Python:
> import os
> filename = "C:\Python22\Canyon.mid"
> os.system("C:\Python22\playb.exe%s"%filename)
> ...this causes a dos box to appear which promptly hangs and does nothing,
> at which time Python stops responding. Vartiations on this will cause the
> dos box to appear with the message "Bad command or file name".
>
Looks like there is a space missing -
os.system("C:\Python22\playb.exe %s"%filename)
^
Diez
More information about the Python-list
mailing list