Skip to content

Commit 72496a7

Browse files
update module install path
1 parent dc35763 commit 72496a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import sys
2121
import subprocess
2222
import bpy
23+
from pathlib import Path
2324

2425

2526
if bpy.app.version < (2, 91, 0):
@@ -97,7 +98,7 @@ def execute(self, context):
9798
"install",
9899
*bpy.context.scene.pip_module_name.split(" "),
99100
"--target",
100-
str(bpy.utils.script_path_user()),
101+
Path(bpy.utils.script_path_user()) / "addons/modules",
101102
)
102103
return {"FINISHED"}
103104

0 commit comments

Comments
 (0)