Skip to content

Commit

Permalink
put back import hack
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudz committed Dec 13, 2024
1 parent bc06fd1 commit a14cc38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions simulationworkflowschema/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ def load_modules():
'photon_polarization',
'thermodynamics',
]
import simulationworkflowschema

for name in sub_modules:
sub_module = importlib.import_module(f'simulationworkflowschema.{name}')
for method in sub_module.__dict__:
if method in __all__:
setattr(simulationworkflowschema, method, sub_module.__dict__[method])

class SimulationWorkflowSchemaEntryPoint(SchemaPackageEntryPoint):
def load(self):
Expand Down

0 comments on commit a14cc38

Please sign in to comment.