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:
2025-02-22 17:10:53 +01:00
parent c28286a626
commit 821d314cb6
10 changed files with 56 additions and 19 deletions

View File

@ -6,7 +6,10 @@ import yaml
#root_dir = os.path.abspath(os.curdir)
#sys.path.append(root_dir)
import utils.g5505_utils as utils
try:
from dima.utils import g5505_utils as utils
except ModuleNotFoundError:
import utils.g5505_utils as utils