aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/develop.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-01-24 10:24:04 -0500
committerGitHub <noreply@github.com>2017-01-24 10:24:04 -0500
commit3f806c10259bd13a99a02117725ba1ae52c5cf33 (patch)
treee892126f51ec4a64452fb3b022ad4c7bd448f24d /setuptools/command/develop.py
parent997b4351f8459622c203eb1b274fee7a73980ce6 (diff)
parente9f0e6f16b46d084bdf92606cd0217b3f12ed25a (diff)
downloadexternal_python_setuptools-3f806c10259bd13a99a02117725ba1ae52c5cf33.tar.gz
external_python_setuptools-3f806c10259bd13a99a02117725ba1ae52c5cf33.tar.bz2
external_python_setuptools-3f806c10259bd13a99a02117725ba1ae52c5cf33.zip
Merge pull request #913 from davidszotten/package_dir_trailing_slash
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 1489de9e..e8f666f1 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