|
from linearized_model import linearized_model |
I ran a script file and had the problem of ModuleNotFound when importing linearized_model.
My solution is to modify __init__.py and append the analysis folder to sys.path
sys.path.append(os.path.dirname(linearFile))
from linearized_model import linearized_model
OMPython/OMPython/__init__.py
Line 1751 in bd17a66
I ran a script file and had the problem of ModuleNotFound when importing
linearized_model.My solution is to modify
__init__.pyand append the analysis folder tosys.path