[Patches] [ python-Patches-772029 ] Make commands.getstatusoutput work on Windows

SourceForge.net noreply@sourceforge.net
Tue, 15 Jul 2003 19:00:45 -0700


Patches item #772029, was opened at 2003-07-16 02:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=772029&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Emin Martinian (emin63)
Assigned to: Nobody/Anonymous (nobody)
Summary: Make commands.getstatusoutput work on Windows

Initial Comment:
The commands.getstatusoutput function does not
currently work on Windows because windows doesn't like
curly braces in shell commands.  By checking the name
of the OS using os.name and not using curly braces when
os.name == 'dos' or os.name == 'nt', the
getstatusoutput can be made to work on Windows.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=772029&group_id=5470