|
52 | 52 | blc_wheel_path = os.environ.get("BLC_WHEEL_PATH") |
53 | 53 |
|
54 | 54 | if am_in_extension: |
| 55 | + root_folder = pathlib.Path(bpy.utils.extension_path_user(__package__, path="", create=True)) |
| 56 | + wheel_dl_folder = pathlib.Path(bpy.utils.extension_path_user(__package__, path="wheels", create=True)) |
| 57 | + wheel_backup_folder = pathlib.Path(bpy.utils.extension_path_user(__package__, path="wheels_backup", create=True)) |
| 58 | + wheel_dev_folder = pathlib.Path(bpy.utils.extension_path_user(__package__, path="pyluxcore_custom", create=True)) |
| 59 | + |
| 60 | + """ |
55 | 61 | root_folder = pathlib.Path(__file__).parent.resolve() |
56 | 62 | wheel_dl_folder = root_folder / "wheels" # for wheels download |
57 | 63 | if not os.path.exists(wheel_dl_folder): |
|
62 | 68 | wheel_dev_folder = root_folder / "pyluxcore_custom" # folder where a nightly build pyluxcore wheel can be placed |
63 | 69 | if not os.path.exists(wheel_dev_folder): |
64 | 70 | os.makedirs(wheel_dev_folder) |
| 71 | + """ |
65 | 72 | # For installation on PCs without internet, or in company networks where downloading |
66 | 73 | # with pip is an issue (reported cases), check for the presence of a folder install_offline/ |
67 | 74 | # where the pyluxcore wheel, and its dependencies, are placed. |
@@ -102,10 +109,10 @@ def _execute_wheel_download(command): |
102 | 109 |
|
103 | 110 | def _update_manifest(): |
104 | 111 | # Setup manifest with wheel list |
105 | | - manifest_path = root_folder / 'blender_manifest.toml' |
| 112 | + manifest_path = pathlib.Path('.', 'blender_manifest.toml') |
106 | 113 | files, *_ = os.walk(wheel_dl_folder) |
107 | 114 | wheels = [ |
108 | | - pathlib.Path('.', 'wheels', f).as_posix() |
| 115 | + pathlib.Path(wheel_dl_folder, f).as_posix() |
109 | 116 | for f in files[2] |
110 | 117 | ] |
111 | 118 | wheel_statement = f'wheels = {wheels}\n' |
|
0 commit comments