diff --git a/main.py b/main.py index 35e88af..c222801 100644 --- a/main.py +++ b/main.py @@ -8,8 +8,11 @@ import argparse import os import sys -# Add the current directory to Python path -sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) +# Ensure project root is in path for direct execution (python main.py) +# Use a set to avoid duplicates and don't insert at position 0 to avoid shadowing +_project_root = os.path.dirname(os.path.abspath(__file__)) +if _project_root not in sys.path: + sys.path.append(_project_root) from cli.commands import handle_command from cli.parser import parse_args, print_help diff --git a/models/__init__.py b/models/__init__.py new file mode 100644 index 0000000..e69de29