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

SourceForge.net noreply at sourceforge.net
Sun Aug 15 15:23:51 CEST 2004


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

Category: Library (Lib)
Group: None
>Status: Closed
>Resolution: Rejected
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.

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

>Comment By: Johannes Gijsbers (jlgijsbers)
Date: 2004-08-15 15:23

Message:
Logged In: YES 
user_id=469548

The commands module is going to stay Unix-specific. There
are too many potential issues with trying to support the
various win32 command interpreters. See
http://mail.python.org/pipermail/python-dev/2004-August/047774.ht
ml and its responses.

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

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


More information about the Patches mailing list