mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-21 15:20:59 +00:00
15 lines
553 B
Diff
15 lines
553 B
Diff
diff --git a/pipenv/patched/pew/pew.py b/pipenv/patched/pew/pew.py
|
|
index 2d3889a0..91f313c1 100644
|
|
--- a/pipenv/patched/pew/pew.py
|
|
+++ b/pipenv/patched/pew/pew.py
|
|
@@ -184,7 +184,8 @@ def fork_bash(env, cwd):
|
|
|
|
def fork_cmder(env, cwd):
|
|
shell_cmd = ['cmd']
|
|
- cmderrc_path = r'%CMDER_ROOT%\vendor\init.bat'
|
|
+ escaped_cmder_root = os.environ['CMDER_ROOT'].replace(' ', '^ ')
|
|
+ cmderrc_path = r'{0}\vendor\init.bat'.format(escaped_cmder_root)
|
|
if expandpath(cmderrc_path).exists():
|
|
shell_cmd += ['/k', cmderrc_path]
|
|
if cwd:
|