Mercurial > libervia-web
comparison bin/libervia @ 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 | b2d067339de3 |
children | b9a8049ca1ff |
comparison
equal
deleted
inserted
replaced
1224:62bf4f87c249 | 1225:63f7a2bd1d4a |
---|---|
20 echo "$2 is probably not running (PID file doesn't exist)" | 20 echo "$2 is probably not running (PID file doesn't exist)" |
21 fi | 21 fi |
22 } | 22 } |
23 | 23 |
24 #We use python to parse config files | 24 #We use python to parse config files |
25 eval `"$PYTHON" << PYTHONEND | 25 eval `/usr/bin/env "$PYTHON" << PYTHONEND |
26 from libervia.server.constants import Const as C | 26 from libervia.server.constants import Const as C |
27 from sat.memory.memory import fixLocalDir | 27 from sat.tools.config import fixLocalDir |
28 from configparser import ConfigParser | 28 from configparser import ConfigParser |
29 from os.path import expanduser, join | 29 from os.path import expanduser, join |
30 import sys | 30 import sys |
31 | 31 |
32 fixLocalDir() # XXX: tmp update code, will be removed in the future | 32 fixLocalDir() # XXX: tmp update code, will be removed in the future |
98 log_dir=`dirname "$LOG_FILE"` | 98 log_dir=`dirname "$LOG_FILE"` |
99 if [ ! -d $log_dir ] ; then | 99 if [ ! -d $log_dir ] ; then |
100 mkdir $log_dir | 100 mkdir $log_dir |
101 fi | 101 fi |
102 | 102 |
103 exec $PYTHON $TWISTD $MAIN_OPTIONS $ADDITIONAL_OPTIONS $APP_NAME_FILE $PLUGIN_OPTIONS $@ | 103 exec /usr/bin/env $PYTHON $TWISTD $MAIN_OPTIONS $ADDITIONAL_OPTIONS $APP_NAME_FILE $PLUGIN_OPTIONS $@ |