jkorstad commited on
Commit
35cbb15
·
verified ·
1 Parent(s): ac49851

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- found_unirig_in_sys_path = any(os.path.abspath(UNIRIG_REPO_DIR) == os.path.abspath(p) for p in sys.path)
413
- print(f" Is UNIRIG_REPO_DIR ('{os.path.abspath(UNIRIG_REPO_DIR)}') in sys.path (at diagnostic script generation time)? {'Yes' if found_unirig_in_sys_path else 'No'}")
 
 
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')