[Python-checkins] r45521 - sandbox/trunk/setuptools/setuptools/command/easy_install.py

phillip.eby python-checkins at python.org
Tue Apr 18 06:25:23 CEST 2006


Author: phillip.eby
Date: Tue Apr 18 06:25:18 2006
New Revision: 45521

Modified:
   sandbox/trunk/setuptools/setuptools/command/easy_install.py
Log:
Handle being run via -m with no __file__ if done from a zipfile in 
Python 2.5.


Modified: sandbox/trunk/setuptools/setuptools/command/easy_install.py
==============================================================================
--- sandbox/trunk/setuptools/setuptools/command/easy_install.py	(original)
+++ sandbox/trunk/setuptools/setuptools/command/easy_install.py	Tue Apr 18 06:25:18 2006
@@ -1549,6 +1549,7 @@
     with_ei_usage(lambda:
         setup(
             script_args = ['-q','easy_install', '-v']+argv,
+            script_name = sys.argv[0] or 'easy_install',
             distclass=DistributionWithoutHelpCommands, **kw
         )
     )
@@ -1557,4 +1558,3 @@
 
 
 
-


More information about the Python-checkins mailing list