Автоматическое определение пути к базе данных

Закончена работа над 1м окном
This commit is contained in:
danamir
2018-12-24 16:39:26 +03:00
parent ca1f945101
commit dfd0d77873
6 changed files with 69 additions and 37 deletions

12
run.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# what real Python executable to use
PYVER=3.7
PYTHON=/Library/Frameworks/Python.framework/Versions/$PYVER/bin/python$PYVER
# find the root of the virtualenv, it should be the parent of the dir this script is in
ENV=`$PYTHON -c "import os; print os.path.abspath(os.path.join(os.path.dirname(\"$0\"), '..'))"`
# now run Python with the virtualenv set as Python's HOME
export PYTHONHOME=$ENV
exec $PYTHON "$@"