Skip to content

Commit c8d814c

Browse files
committed
refactor, remove unused site dir paths & imports
we add some paths to sys.path, but sys.paths won't get passed to subprocess default included in blender for good reason C:\\Users\\user\\AppData\\Roaming\\Python\\Python310\\site-packages points to py packages outside of blender, could cause clashes
1 parent 5b2c607 commit c8d814c

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

__init__.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,9 @@
1414

1515
__version__ = ".".join(map(str, bl_info["version"]))
1616

17-
# add user site to sys.path
18-
# binaries go to {site.USER_BASE}/bin
19-
# venv notice:
20-
# https://stackoverflow.com/questions/33412974/
21-
# how-to-uninstall-a-package-installed-with-pip-install-user/56948334#56948334
22-
import site
2317
import sys
2418
import subprocess
25-
26-
app_path = site.getusersitepackages()
27-
print("Blender PIP user site:", app_path)
28-
if app_path not in sys.path:
29-
print("Adding site to path")
30-
sys.path.append(app_path)
31-
3219
import bpy
33-
import numpy as np
34-
import mathutils as mu
3520
from pathlib import Path
3621

3722
MODULES_FOLDER = Path(bpy.utils.user_resource("SCRIPTS")) / "modules"

0 commit comments

Comments
 (0)