Skip to content

Commit

Permalink
wsl: import site
Browse files Browse the repository at this point in the history
  • Loading branch information
NIC-MichalLabedzki committed Apr 25, 2020
1 parent 3a07e4c commit f2fe5cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nf.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,8 @@ def download_file(url, download_dir):
import zipfile
with zipfile.ZipFile(downloaded_file, 'r') as file_zip:
file_zip.extractall(new_python_dir)
with open('.nfdir/wsl/python/3.8.2/python38._pth', 'a') as f:
f.write('import site\n');
os.environ["PATH"] = os.path.abspath(new_python_dir + os.pathsep + os.environ["PATH"])

# os.chmod(os.path.join(new_python_dir, 'python.exe'), 0o777)
Expand Down

0 comments on commit f2fe5cb

Please sign in to comment.