bin
parent
2f990a34e7
commit
82903af78d
@ -0,0 +1,12 @@
|
||||
|
||||
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||||
path=`realpath "$SCRIPTPATH/../komrade/backend/switchboard.py"`
|
||||
pathvenv=`realpath "$SCRIPTPATH/../venv/bin/activate"`
|
||||
|
||||
source $pathvenv
|
||||
|
||||
cmd="python $path 8080"
|
||||
|
||||
$cmd
|
||||
|
||||
#python switchboard.py 8080
|
@ -1,11 +0,0 @@
|
||||
import os,sys; sys.path.append(os.path.abspath(os.path.join(os.path.abspath(os.path.join(os.path.dirname(__file__),'..')),'..')))
|
||||
# from komrade import *
|
||||
|
||||
import sys
|
||||
port = '8080' if len(sys.argv)<2 or not sys.argv[1].isdigit() else sys.argv[1]
|
||||
|
||||
|
||||
|
||||
|
||||
from switchboard import run_forever
|
||||
run_forever(port = port)
|
Loading…
Reference in New Issue