Skip to content

Commit

Permalink
describe the reason
Browse files Browse the repository at this point in the history
  • Loading branch information
isidentical committed Jan 24, 2024
1 parent 0203610 commit 3a52a6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions projects/fal/src/fal/_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def add_serialization_listeners_for(obj):

_MODULES.add(module_name)
if module_name == "__main__":
# When the module is __main__, we need to recursively go up the
# tree to locate the actual package name.
import __main__

path = Path(__main__.__file__)
Expand Down

0 comments on commit 3a52a6d

Please sign in to comment.