2025-06-13 12:03:39 +00:00

22 lines
612 B
Python

import sys
from importlib import import_module
# Simple test script to check for import errors
try:
# Import main module
print("Importing main module...")
main = import_module("main")
print("Main module imported successfully!")
# Try to import the app
print("Importing app...")
app = getattr(main, "app")
print("App imported successfully!")
print("All imports successful! The application should run without errors.")
sys.exit(0)
except Exception as e:
print(f"Error importing application: {e}")
import traceback
traceback.print_exc()
sys.exit(1)