1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

also treat trailing \ as a directory

This commit is contained in:
Ian Bicking 2009-02-03 20:34:22 -06:00
parent 29c4191b0a
commit f103eb2016

2
pip.py
View file

@ -1946,7 +1946,7 @@ class RequirementSet(object):
dir = os.path.dirname(fn)
if not os.path.exists(dir):
os.makedirs(dir)
if fn.endswith('/'):
if fn.endswith('/') or fn.endswith('\\'):
# A directory
if not os.path.exists(fn):
os.makedirs(fn)