17 lines
396 B
Python
17 lines
396 B
Python
import sys
|
|
from pathlib import Path
|
|
|
|
BASE_DIR = Path(__file__).resolve().parent
|
|
if str(BASE_DIR) not in sys.path:
|
|
sys.path.insert(0, str(BASE_DIR))
|
|
if str(BASE_DIR.parent) not in sys.path:
|
|
sys.path.insert(0, str(BASE_DIR.parent))
|
|
|
|
try:
|
|
from sec.src.cli import run_cli
|
|
except ImportError:
|
|
from src.cli import run_cli
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(run_cli(sys.argv[1:]))
|