Change import statements with try except to enable explicit import of submodules from import to avoid conflicts with parent project.
This commit is contained in:
@ -15,7 +15,12 @@ if dimaPath not in sys.path: # Avoid duplicate entries
|
||||
|
||||
import h5py
|
||||
import yaml
|
||||
import src.hdf5_ops as hdf5_ops
|
||||
|
||||
try:
|
||||
from dima.src import hdf5_ops as hdf5_ops
|
||||
except ModuleNotFoundError:
|
||||
import src.hdf5_ops as hdf5_ops
|
||||
|
||||
|
||||
|
||||
def load_yaml(review_yaml_file):
|
||||
|
Reference in New Issue
Block a user