Skip to content

Commit bd2bdc5

Browse files
committed
Use bpy.utils.extension_path_user() for wheels download and custom config files
1 parent 62e068b commit bd2bdc5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@
5252
blc_wheel_path = os.environ.get("BLC_WHEEL_PATH")
5353

5454
if am_in_extension:
55+
root_folder = bpy.utils.extension_path_user(__package__, path="", create=True)
56+
wheel_dl_folder = bpy.utils.extension_path_user(__package__, path="wheels", create=True)
57+
wheel_backup_folder = bpy.utils.extension_path_user(__package__, path="wheels_backup", create=True)
58+
wheel_dev_folder = bpy.utils.extension_path_user(__package__, path="pyluxcore_custom", create=True)
59+
60+
"""
5561
root_folder = pathlib.Path(__file__).parent.resolve()
5662
wheel_dl_folder = root_folder / "wheels" # for wheels download
5763
if not os.path.exists(wheel_dl_folder):
@@ -62,6 +68,7 @@
6268
wheel_dev_folder = root_folder / "pyluxcore_custom" # folder where a nightly build pyluxcore wheel can be placed
6369
if not os.path.exists(wheel_dev_folder):
6470
os.makedirs(wheel_dev_folder)
71+
"""
6572
# For installation on PCs without internet, or in company networks where downloading
6673
# with pip is an issue (reported cases), check for the presence of a folder install_offline/
6774
# where the pyluxcore wheel, and its dependencies, are placed.

0 commit comments

Comments
 (0)