25 lines
525 B
Python
25 lines
525 B
Python
import os
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
# Ensure package root and current directory are in sys.path
|
|
current_dir = Path(__file__).resolve().parent
|
|
parent_dir = current_dir.parent
|
|
|
|
if str(current_dir) not in sys.path:
|
|
sys.path.insert(0, str(current_dir))
|
|
if str(parent_dir) not in sys.path:
|
|
sys.path.insert(0, str(parent_dir))
|
|
|
|
try:
|
|
from gravitiny.src.cli import run_cli
|
|
except ImportError:
|
|
from src.cli import run_cli
|
|
|
|
def main() -> None:
|
|
sys.exit(run_cli())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|