From ffa97e1ede02f9628a68a76c155fc6cc0f42707e Mon Sep 17 00:00:00 2001 From: RedSoxASaur Date: Mon, 29 Jul 2024 21:28:45 -0800 Subject: [PATCH] Update PythonToolsInstaller.py python has been updated to 3.12, and line 51 has the /usr/ line twice. --- plugins/PythonToolsInstaller/PythonToolsInstaller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/PythonToolsInstaller/PythonToolsInstaller.py b/plugins/PythonToolsInstaller/PythonToolsInstaller.py index a49b5dc9..e2c253b2 100644 --- a/plugins/PythonToolsInstaller/PythonToolsInstaller.py +++ b/plugins/PythonToolsInstaller/PythonToolsInstaller.py @@ -48,7 +48,7 @@ def run(input, output): def get_download_py_stashapp_tools(PLUGIN_DIR): - org_packagedir = sysconfig.get_paths()["purelib"] # /usr/lib/python3.11/site-packages/usr/lib/python3.11/site-packages + org_packagedir = sysconfig.get_paths()["purelib"] # /usr/lib/python3.12/site-packages used_dir = f"{PLUGIN_DIR}" create(f"{used_dir}/venv/", with_pip=True) @@ -56,7 +56,7 @@ def get_download_py_stashapp_tools(PLUGIN_DIR): # where requirements.txt is in same dir as this script subprocess.run([f"{used_dir}/venv/bin/pip", "install", "-r", abspath(f"{used_dir}/packages/stashtools.txt")],stdout=None) - # venv/lib/python3.11/site-packages/stashapp_tools- + # venv/lib/python3.12/site-packages/stashapp_tools- src = f"{used_dir}/venv/lib/python3.11/site-packages" destination = shutil.copytree(src, org_packagedir,ignore_func,None,shutil.copy2,False,True)