Skip to content

Commit 76117d5

Browse files
authored
working with embedded python scanning rezplugins (#1359)
* working with embedded python scanning rezplugins Signed-off-by: loonghao <[email protected]>
1 parent 056980e commit 76117d5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/rez/plugin_managers.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,12 @@ def rezplugins_module_paths(self):
317317
module_path = os.path.join(importer.archive, name)
318318

319319
else:
320-
module_path = os.path.join(importer.path, name)
320+
try:
321+
module_path = os.path.join(importer.path, name)
322+
# Ignore execution failures due to missing `importer.path`,
323+
# when rez is packaged as a single application via Pyinstaller or PyOxidizer.
324+
except AttributeError:
325+
continue
321326
init_path = os.path.join(module_path, "rezplugins", "__init__.py")
322327
if not os.path.isfile(init_path):
323328
continue

0 commit comments

Comments
 (0)