Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -409,8 +409,10 @@ print("\n2. Checking for UniRig 'src' module availability...")
|
|
| 409 |
# The f-string formatting {os.path.abspath(UNIRIG_REPO_DIR)} ensures this path is correctly embedded
|
| 410 |
# into the script content that Blender's Python will execute.
|
| 411 |
print(f" Expected UniRig repo parent in sys.path: '{os.path.abspath(UNIRIG_REPO_DIR)}'")
|
| 412 |
-
|
| 413 |
-
|
|
|
|
|
|
|
| 414 |
|
| 415 |
|
| 416 |
unirig_src_dir_in_cwd_exists = os.path.isdir('src')
|
|
|
|
| 409 |
# The f-string formatting {os.path.abspath(UNIRIG_REPO_DIR)} ensures this path is correctly embedded
|
| 410 |
# into the script content that Blender's Python will execute.
|
| 411 |
print(f" Expected UniRig repo parent in sys.path: '{os.path.abspath(UNIRIG_REPO_DIR)}'")
|
| 412 |
+
# The following lines are now part of the script executed by Blender's Python:
|
| 413 |
+
blender_script_unirig_repo_abspath = r'''{os.path.abspath(UNIRIG_REPO_DIR)}''' # app.py embeds the path string here
|
| 414 |
+
found_unirig_in_blender_sys_path = any(os.path.abspath(p) == blender_script_unirig_repo_abspath for p in sys.path)
|
| 415 |
+
print(f" Is UNIRIG_REPO_DIR ('{{blender_script_unirig_repo_abspath}}') actually in Blender's sys.path? {{'Yes' if found_unirig_in_blender_sys_path else 'No'}}")
|
| 416 |
|
| 417 |
|
| 418 |
unirig_src_dir_in_cwd_exists = os.path.isdir('src')
|