We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6f162f commit a1f1f95Copy full SHA for a1f1f95
1 file changed
cq_editor/widgets/editor.py
@@ -549,9 +549,16 @@ def get_imported_module_paths(self, module_path):
549
except SyntaxError as err:
550
self._logger.warning(f"Syntax error in {module_path}: {err}")
551
except Exception as err:
552
+ # Suppress PyInstaller-specific module finder error
553
+ if (
554
+ getattr(sys, "frozen", False)
555
+ and isinstance(err, AttributeError)
556
+ and "is_package" in str(err)
557
+ ):
558
+ pass
559
# The module finder has trouble when CadQuery is imported in the top level script and in
560
# imported modules. The warning about it can be ignored.
- if "cadquery" not in finder.badmodules or (
561
+ elif "cadquery" not in finder.badmodules or (
562
"cadquery" in finder.badmodules and len(finder.badmodules) > 1
563
):
564
self._logger.warning(
0 commit comments