diff --git a/run.sh b/run.sh index e08f90493948aaa437f0c8c817b23f9d9bb562b1..349a2376bc0c66e1a12707eecdd60a5fff3233ba 100755 --- a/run.sh +++ b/run.sh @@ -34,12 +34,14 @@ echo "[ Docker=$docker ]" # Check for the correct Python version (3.8+) PYTHON_EXEC="python3" +PYTHON_BASE_DIR="." echo "[ Using $("$PYTHON_EXEC" -V) ]" # +++ DEFAULT COMMANDS +++ # if [[ $docker == "false" ]]; then + export PYTHONPATH="$PYTHON_BASE_DIR" ### Runs the API Server (Development) ### diff --git a/setup.py b/setup.py index 412590f3665b8eb43f73d96819ed2fdf91f50679..bd80f626dfc49a3718f3faa4bf31fab79d08c085 100644 --- a/setup.py +++ b/setup.py @@ -17,8 +17,6 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. -import sys - from setuptools import find_packages, setup NAME = "engine-api" diff --git a/src/app.py b/src/app.py index fba8d537f67a1c939a9d6ee538119c728a3c3194..954fb7e95255ec5b8dacf91a58ba53dfaa7dbf30 100644 --- a/src/app.py +++ b/src/app.py @@ -18,11 +18,8 @@ import atexit -import os import sys -sys.path.append(os.path.join(os.path.dirname(__file__), "..")) - import connexion import meta