Skip to content

Commit

Permalink
Update PythonToolsInstaller.py
Browse files Browse the repository at this point in the history
python has been updated to 3.12, and line 51 has the /usr/ line twice.
  • Loading branch information
RedSoxASaur authored Jul 30, 2024
1 parent 2f5caf4 commit ffa97e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/PythonToolsInstaller/PythonToolsInstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ 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)

# 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)
Expand Down

0 comments on commit ffa97e1

Please sign in to comment.