Skip to content

Commit ee1562c

Browse files
Amit AronovitchCeleritasCelery
authored andcommitted
restore windows support in anaconda-mode.py
1 parent e598ebe commit ee1562c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

anaconda-mode.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def install_deps_pip():
7777
import venv
7878
temp_dir = pathlib.Path(tempfile.mkdtemp())
7979
venv.create(temp_dir, with_pip=True)
80-
cmd = [temp_dir / 'bin' / 'pip', 'install', '--target', server_directory]
80+
binname = 'Scripts' if sys.platform == 'win32' else 'bin'
81+
cmd = [temp_dir / binname / 'pip', 'install', '--target', server_directory]
8182
cmd.extend(missing_dependencies)
8283
try:
8384
subprocess.check_call(cmd)

0 commit comments

Comments
 (0)