changeset 1225:63f7a2bd1d4a

misc: use /usr/bin/env + fixed import of fixLocalDir according to backend changes
author Goffi <goffi@goffi.org>
date Tue, 08 Oct 2019 12:11:16 +0200
parents 62bf4f87c249
children 011147d7a931
files bin/libervia
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/bin/libervia	Sun Oct 06 22:21:13 2019 +0200
+++ b/bin/libervia	Tue Oct 08 12:11:16 2019 +0200
@@ -22,9 +22,9 @@
 }
 
 #We use python to parse config files
-eval `"$PYTHON" << PYTHONEND
+eval `/usr/bin/env "$PYTHON" << PYTHONEND
 from libervia.server.constants import Const as C
-from sat.memory.memory import fixLocalDir
+from sat.tools.config import fixLocalDir
 from configparser import ConfigParser
 from os.path import expanduser, join
 import sys
@@ -100,4 +100,4 @@
     mkdir $log_dir
 fi
 
-exec $PYTHON $TWISTD $MAIN_OPTIONS $ADDITIONAL_OPTIONS $APP_NAME_FILE $PLUGIN_OPTIONS $@
+exec /usr/bin/env $PYTHON $TWISTD $MAIN_OPTIONS $ADDITIONAL_OPTIONS $APP_NAME_FILE $PLUGIN_OPTIONS $@