aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/develop.py
diff options
context:
space:
mode:
authorDavid Szotten <davidszotten@gmail.com>2017-01-05 11:47:09 +0000
committerDavid Szotten <davidszotten@gmail.com>2017-01-05 11:47:09 +0000
commite9f0e6f16b46d084bdf92606cd0217b3f12ed25a (patch)
tree296762624c1368603ab4ea5379b1ccd4b8f91a60 /setuptools/command/develop.py
parent8db1d2d4f72f347f3fd5a9d8cf4a225173251318 (diff)
downloadexternal_python_setuptools-e9f0e6f16b46d084bdf92606cd0217b3f12ed25a.tar.gz
external_python_setuptools-e9f0e6f16b46d084bdf92606cd0217b3f12ed25a.tar.bz2
external_python_setuptools-e9f0e6f16b46d084bdf92606cd0217b3f12ed25a.zip
strip trailing slash from package_dir before counting slashes
Diffstat (limited to 'setuptools/command/develop.py')
-rwxr-xr-xsetuptools/command/develop.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/develop.py b/setuptools/command/develop.py
index aa82f959..ca05d1e3 100755
--- a/setuptools/command/develop.py
+++ b/setuptools/command/develop.py
@@ -79,7 +79,7 @@ class develop(namespaces.DevelopInstaller, easy_install):
project_name=ei.egg_name
)
- p = self.egg_base.replace(os.sep, '/')
+ p = self.egg_base.replace(os.sep, '/').rstrip('/')
if p != os.curdir:
p = '../' * (p.count('/') + 1)
self.setup_path = p