We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ce340f commit d7c9e97Copy full SHA for d7c9e97
1 file changed
cq_editor/widgets/editor.py
@@ -550,7 +550,11 @@ def get_imported_module_paths(self, module_path):
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 isinstance(err, AttributeError) and "is_package" in str(err):
+ 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.
0 commit comments