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

phillip.eby python-checkins at python.org
Tue May 30 19:56:29 CEST 2006


Author: phillip.eby
Date: Tue May 30 19:56:27 2006
New Revision: 46563

Modified:
   sandbox/trunk/setuptools/setuptools/command/easy_install.py
Log:
Fix a problem w/relative path generation if you install an egg whose 
name begins with 'import'.


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 May 30 19:56:27 2006
@@ -1394,7 +1394,7 @@
 
     def make_relative(self,path):
         if normalize_path(os.path.dirname(path))==self.basedir:
-            return os.path.basename(path)
+            return os.path.join(os.curdir, os.path.basename(path))
         return path
 
 
@@ -1551,3 +1551,8 @@
             distclass=DistributionWithoutHelpCommands, **kw
         )
     )
+
+
+
+
+


More information about the Python-checkins mailing list