master > master: code - korrigierte Artefacterstellung für python
This commit is contained in:
parent
189755e69a
commit
15c2c37213
33
code/python/src/__main__.py
Normal file
33
code/python/src/__main__.py
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
#!/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);
|
@ -28,6 +28,14 @@ export PYTHON_APP_PREFIX=\
|
|||||||
export USE_VENV=false;
|
export USE_VENV=false;
|
||||||
export UNITTEST_SCHEMA_PY="test_*.py";
|
export UNITTEST_SCHEMA_PY="test_*.py";
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
# AUXILIARY METHODS: Zip
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
function create_zip_archive() {
|
||||||
|
zip -r $@;
|
||||||
|
}
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# AUXILIARY METHODS: Go
|
# AUXILIARY METHODS: Go
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
@ -37,7 +37,6 @@ elif [ "$mode" == "run" ]; then
|
|||||||
if [ "$lang" == "go" ]; then
|
if [ "$lang" == "go" ]; then
|
||||||
run_main_go $options;
|
run_main_go $options;
|
||||||
else #elif [ "$lang" == "python" ]; then
|
else #elif [ "$lang" == "python" ]; then
|
||||||
echo "options=$options;$SCRIPTARGS."
|
|
||||||
run_main $options;
|
run_main $options;
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user