mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Fixed a directory check and removed the 'git.cmd' GIT_CMD
This commit is contained in:
parent
0112cd7f79
commit
5e08433978
7
pip.py
7
pip.py
|
@ -52,10 +52,7 @@ pypi_url = "http://pypi.python.org/simple"
|
|||
default_timeout = 15
|
||||
|
||||
# Choose a Git command based on platform.
|
||||
if sys.platform == 'win32':
|
||||
GIT_CMD = 'git.cmd'
|
||||
else:
|
||||
GIT_CMD = 'git'
|
||||
GIT_CMD = 'git'
|
||||
|
||||
## FIXME: this shouldn't be a module setting
|
||||
default_vcs = None
|
||||
|
@ -1946,7 +1943,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)
|
||||
|
|
Loading…
Reference in a new issue