Skip to content

Commit 71598d1

Browse files
authored
Execute the module to access the funtion in its namespace (#480)
1 parent a6db169 commit 71598d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/rdesigneur/rdesigneur.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ def buildProtoFromFunction( self, func, protoName ):
327327
try:
328328
# module = imp.load_module(moduleName, moduleFile, pathName, description)
329329
module = importlib.util.module_from_spec(spec)
330+
spec.loader.exec_module(module)
330331
funcObj = getattr(module, funcName)
331332
funcObj(protoName)
332333
return True

0 commit comments

Comments
 (0)