Skip to content

Commit

Permalink
reverted import module code
Browse files Browse the repository at this point in the history
Signed-off-by: ParthM-GitHub <[email protected]>
  • Loading branch information
KeertiX authored and ParthM-GitHub committed May 10, 2023
1 parent 1fc8d3a commit e36cffb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openfl/experimental/utilities/metaflow_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ def __init__(self, flow):
self._postprocess()

def _create_nodes(self, flow):
tree = ast.parse(getsource(flow)).body
module = __import__(flow.__module__)
tree = ast.parse(getsource(module)).body
root = [
n
for n in tree
Expand Down

0 comments on commit e36cffb

Please sign in to comment.