Skip to content
Snippets Groups Projects
Commit 473b9da5 authored by Lars Kruse's avatar Lars Kruse
Browse files

refactor: avoid manipulation of python's import path within the application

The environment should be configured outside of the application.
parent 94345154
No related branches found
No related tags found
1 merge request!1Style & Tests
......@@ -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) ###
......
......@@ -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"
......
......@@ -18,11 +18,8 @@
import atexit
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
import connexion
import meta
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment