How to execute an EXE via os.system() with spaces in the directory name?

Dan Bishop danb_83 at yahoo.com
Sun Dec 4 03:16:59 EST 2005


sdb1031 at gmail.com wrote:
> I am trying to run an exe within a python script, but I'm having
> trouble with spaces in the directory name.
...
> So, it looks to me like the space in the path for the argument is
> causing it to fail.  Does anyone have any suggestions that could help
> me out?

Does C:\progra~1\somedi~1\engine\theexe.exe still work?




More information about the Python-list mailing list