##// END OF EJS Templates
Remove branching over whitespace in executable path
Blazej Michalik -
Show More
@@ -67,11 +67,10 b' class PackagingMagics(Magics):'
67 %pip install [pkgs]
67 %pip install [pkgs]
68 """
68 """
69 python = sys.executable
69 python = sys.executable
70 if " " in python:
70 if sys.platform == "win32":
71 if sys.platform == "win32":
71 python = '"' + python + '"'
72 python = '"' + python + '"'
72 else:
73 else:
73 python = shlex.quote(python)
74 python = shlex.quote(python)
75
74
76 self.shell.system(" ".join([python, "-m", "pip", line]))
75 self.shell.system(" ".join([python, "-m", "pip", line]))
77
76
General Comments 0
You need to be logged in to leave comments. Login now