You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PYTHONPATH is treated as a single path, rather than a list of paths.
It should be converted to sys,path as a list of paths, not a single path.
This prevents users from being able to define multiple external dependencies for pyrevit applications at runtime (eg when revit launches).
⌨ Error/Debug Message
n/a
♻️ To Reproduce
From shell, set pythonpath to multiple folders ; eg $env:PYTHONPATH="/path/a;/path/b"
launch revit
Launch script that attempts to import module in either path.
Observe import failing.
⏲️ Expected behavior
Pyrevit should initialise with existing PYTHONPATH being translated correctly to sys.path entries where PYTHONPATH is a list of folders not just a single folder.
🖥️ Hardware and Software Setup (please complete the following information)
n/a
Additional context
This is in the context of a VFX studio where python environment are defined prior to launching DCCs using PYTHONPATH with all dependencies added (typically using the "Rez" package manager).
The text was updated successfully, but these errors were encountered:
reformstudios
added
the
Bug
Bug that stops user from using the tool or a major portion of pyRevit functionality [class]
label
Jan 17, 2025
reformstudios
changed the title
[Bug]:
[Bug]: PYTHONPATH translation to sys.path fails if not single folder.
Jan 17, 2025
✈ Pre-Flight checks
🐞 Describe the bug
pyRevit/dev/pyRevitLabs.PyRevit.Runtime/CPythonEngine.cs
Lines 201 to 206 in 9866e6f
PYTHONPATH is treated as a single path, rather than a list of paths.
It should be converted to sys,path as a list of paths, not a single path.
This prevents users from being able to define multiple external dependencies for pyrevit applications at runtime (eg when revit launches).
⌨ Error/Debug Message
♻️ To Reproduce
⏲️ Expected behavior
Pyrevit should initialise with existing PYTHONPATH being translated correctly to sys.path entries where PYTHONPATH is a list of folders not just a single folder.
🖥️ Hardware and Software Setup (please complete the following information)
Additional context
This is in the context of a VFX studio where python environment are defined prior to launching DCCs using PYTHONPATH with all dependencies added (typically using the "Rez" package manager).
The text was updated successfully, but these errors were encountered: