17 lines
430 B
Python
17 lines
430 B
Python
|
|
from pathlib import Path
|
||
|
|
import sys
|
||
|
|
|
||
|
|
print(f"File: {__file__}")
|
||
|
|
hcm_dir = Path(__file__).parent.parent.parent
|
||
|
|
print(f"HCM_DIR: {hcm_dir}")
|
||
|
|
nd_dir = hcm_dir / "nautilus_dolphin"
|
||
|
|
print(f"ND_DIR: {nd_dir}")
|
||
|
|
sys.path.insert(0, str(nd_dir))
|
||
|
|
print(f"Path: {sys.path[:1]}")
|
||
|
|
|
||
|
|
try:
|
||
|
|
from nautilus_dolphin.nautilus.dolphin_actor import DolphinActor
|
||
|
|
print("Import: SUCCESS")
|
||
|
|
except ImportError as e:
|
||
|
|
print(f"Import: ERROR ({e})")
|