
import sys
import traceback

# Add plugin parent path
plugin_parent_path = r'c:/Users/acer/AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins'
if plugin_parent_path not in sys.path:
    sys.path.append(plugin_parent_path)

print("Testing core imports...")

try:
    print("Importing core.dem_utils...")
    print("  OK")
except Exception as e:
    print(f"  FAILED: {e}")
    traceback.print_exc()

try:
    print("Importing core.flow_algorithms...")
    print("  OK")
except Exception as e:
    print(f"  FAILED: {e}")
    traceback.print_exc()

try:
    print("Importing core.morphometry...")
    print("  OK")
except Exception as e:
    print(f"  FAILED: {e}")
    traceback.print_exc()
