Skip to content

Commit

Permalink
Fix module filtering in SochaPackageBuilder class
Browse files Browse the repository at this point in the history
  • Loading branch information
maxblan committed Mar 15, 2024
1 parent 813a678 commit d159fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/socha/utils/package_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _get_modules():
)
main_modules = {
name for name in main_modules
if hasattr(sys.modules[name], "__file__")
if hasattr(sys.modules[name], "__file__") and sys.modules[name].__file__ is not None
and (os.path.abspath(os.path.dirname(sys.modules[name].__file__)) == main_dir
or os.path.abspath(os.path.dirname(sys.modules[name].__file__)).startswith(main_dir + os.path.sep))
}
Expand Down

0 comments on commit d159fa4

Please sign in to comment.