import os import sys # Add the 'app' directory to sys.path app_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'app') if app_dir not in sys.path: sys.path.append(app_dir) # Import and run FinalApp.py import FinalApp FinalApp.main() # Call the main function directly if defined