import sys
import os

try:
    print("Verifying routes.py syntax...")
    from web_application.admin.main import routes
    print("routes.py imported successfully.")

    template_path = "d:/Programming/Python/WebProgramming/doktorlar_v2/web_application/admin/main/templates/main/create_user.html"
    if os.path.exists(template_path):
        print("create_user.html exists.")
    else:
        print("Error: create_user.html not found.")

except ImportError as e:
    print(f"ImportError: {e}")
except SyntaxError as e:
    print(f"SyntaxError: {e}")
except Exception as e:
    print(f"Error: {e}")
