From f2fe5cba7687021cd09563c733676f7e38ab02a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=81ab=C4=99dzki?= Date: Sat, 25 Apr 2020 15:16:19 +0200 Subject: [PATCH] wsl: import site --- nf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nf.py b/nf.py index 52f4980..7a0d524 100755 --- a/nf.py +++ b/nf.py @@ -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)