34 lines
1.0 KiB
Python
34 lines
1.0 KiB
Python
|
#!/usr/bin/env python3
|
||
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
# NOTE: This file is needed in addition to main.py
|
||
|
# for the creation of an artefact.
|
||
|
# It is stored one level higher than src.
|
||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
|
||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
# IMPORTS
|
||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
|
||
|
import os;
|
||
|
import sys;
|
||
|
|
||
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.abspath(__file__), '..')));
|
||
|
|
||
|
from src.setup.cli import *;
|
||
|
from src.main import enter;
|
||
|
|
||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
# EXECUTION
|
||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
sys.tracebacklimit = 0;
|
||
|
sys.tracebacklimit = 0;
|
||
|
try:
|
||
|
args = GetArgumentsFromCli(sys.argv[1:]);
|
||
|
except:
|
||
|
exit(1);
|
||
|
enter(quiet=args.quiet, debug=args.debug, mode=args.mode[0], path=args.path);
|