distutils installation script, draft
This commit is contained in:
parent
0a72186117
commit
ff07dfb2b8
28 changed files with 141 additions and 45 deletions
15
src/sat.sh
15
src/sat.sh
|
|
@ -1,3 +1,16 @@
|
|||
#!/bin/sh
|
||||
twistd -noy sat.tac
|
||||
|
||||
NAME='sat'
|
||||
|
||||
PID_FILE="/tmp/$NAME.pid"
|
||||
DAEMON="n"
|
||||
MAIN_OPTIONS="-${DAEMON}oy"
|
||||
TAP_PATH="./"
|
||||
TAP_FILE="$NAME.tac"
|
||||
|
||||
#Don't change the next line
|
||||
AUTO_OPTIONS=""
|
||||
ADDITIONAL_OPTIONS="--pidfile $PID_FILE $AUTO_OPTIONS"
|
||||
|
||||
echo "autogenere == >" twistd $MAIN_OPTIONS $TAP_PATH$TAP_FILE $ADDITIONAL_OPTIONS
|
||||
twistd $MAIN_OPTIONS $TAP_PATH$TAP_FILE $ADDITIONAL_OPTIONS
|
||||
|
|
|
|||
|
|
@ -372,7 +372,7 @@ class SAT(service.Service):
|
|||
plug_lst = [os.path.splitext(plugin)[0] for plugin in map(os.path.basename,glob ("plugins/plugin*.py"))]
|
||||
|
||||
for plug in plug_lst:
|
||||
plug_path = 'plugins.'+plug
|
||||
plug_path = 'sat.plugins.'+plug
|
||||
__import__(plug_path)
|
||||
mod = sys.modules[plug_path]
|
||||
plug_info = mod.PLUGIN_INFO
|
||||
|
|
|
|||
Loading…
Reference in a new issue