From 88c2fae4d176a375633d34f63b99d2676299b184 Mon Sep 17 00:00:00 2001 From: machinewu Date: Thu, 14 Dec 2023 05:15:37 +0800 Subject: [PATCH] Fix the error where name 'pluginparent' is not defined in the Python virtualenv --- vsrepo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsrepo.py b/vsrepo.py index df1dd41..98150ae 100644 --- a/vsrepo.py +++ b/vsrepo.py @@ -172,7 +172,7 @@ def get_vs_installation_site() -> str: print('Package argument required for install, upgrade and uninstall operations') sys.exit(1) -package_json_path = os.path.join(file_dirname, 'vspackages3.json') if args.portable else os.path.join(*pluginparent, 'vsrepo', 'vspackages3.json') +package_json_path = os.path.join(file_dirname, 'vspackages3.json') if args.portable or is_sitepackage_install_portable() else os.path.join(*pluginparent, 'vsrepo', 'vspackages3.json') if is_sitepackage_install(): if is_venv():