Bugs item #1252733, was opened at 2005-08-05 20:55
Message generated for change (Comment added) made by salty-horse
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1252733&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Ori Avtalion (salty-horse)
Assigned to: Nobody/Anonymous (nobody)
Summary: os.system on win32 can't handle pathnames with spaces
Initial Comment:
when calling os.system("file with spaces.exe"), Windows
outputs the following:
'file' is not recognized as an internal or external
command,
operable program or batch file.
I tried quoting the filename. Still got the same error.
----------------------------------------------------------------------
>Comment By: Ori Avtalion (salty-horse)
Date: 2005-08-06 13:13
Message:
Logged In: YES
user_id=854801
os.execute("\file with spaces\") seems to solve the problem.
Documentation here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocess.asp
Turns out this is NOT a bug.
----------------------------------------------------------------------
Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-08-05 21:41
Message:
Logged In: YES
user_id=1188172
Can you escape the spaces with backslashes? Or with
circumflexes?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1252733&group_id=5470
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com