[Patches] [ python-Patches-851459 ] Argument passing from /usr/bin/idle2.3 to idle.py

SourceForge.net noreply at sourceforge.net
Tue Dec 21 03:25:31 CET 2004


Patches item #851459, was opened at 2003-11-30 06:27
Message generated for change (Comment added) made by jafo
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=851459&group_id=5470

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Humberto Diógenes (virtualspirit)
Assigned to: Sean Reifschneider (jafo)
Summary: Argument passing from /usr/bin/idle2.3 to idle.py

Initial Comment:
/usr/bin/idle2.3 wrapper (from the 2.3.2-1pydotorg rpm) ignores 
command-line arguments when calling idle.py. Fixed only by adding 
"$*" to the script.

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

>Comment By: Sean Reifschneider (jafo)
Date: 2004-12-21 02:25

Message:
Logged In: YES 
user_id=81797

I went ahead and turned this into Python code and called
"execvp", passing the command arguments onto the idle call.
 This way there are no worries about how the shell handles
$* expansion.  The current CVS version results in something
looking like:

#!/usr/bin/env python2.4
import os, sys
os.execvp("/usr/bin/python2.4", ["/usr/bin/python2.4",
"/usr/lib/python2.4/idlelib/idle.py"] + sys.argv[1:])
print "Failed to exec Idle"
sys.exit(1)

(assuming default build settings)

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

Comment By: Kurt B. Kaiser (kbk)
Date: 2004-12-20 20:53

Message:
Logged In: YES 
user_id=149084

Appears to be an issue with the Tools section of 
..../Misc/RPM/python-2.4.spec
Backport to release23-maint

Assigning to Sean Reifschneider

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

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


More information about the Patches mailing list