|
@@ -34,7 +34,7 @@ async def hello(websocket):
|
|
|
key=0
|
|
|
try:
|
|
|
key=int(parts[1])
|
|
|
- except ValueError:
|
|
|
+ except (ValueError,IndexError):
|
|
|
#only used for exit checking
|
|
|
pass
|
|
|
|
|
@@ -55,7 +55,7 @@ async def hello(websocket):
|
|
|
print(">>>[{}] Done".format(message))
|
|
|
|
|
|
async def main(ip):
|
|
|
- origins=["merlin","labkey-public","onko-nix",None]
|
|
|
+ origins=["merlin","labkey-public","onko-nix","labkey-klimt",None]
|
|
|
#server="vangogh.fmf.uni-lj.si"
|
|
|
#serverIP="193.2.68.227"
|
|
|
#serve IP as argument
|
|
@@ -78,7 +78,7 @@ def run(message):
|
|
|
venv=setup['venv'][scriptDir]
|
|
|
pCall=os.path.join(venv,'bin','python')
|
|
|
argsCall=[pCall,scriptFile,args[0],args[2]]
|
|
|
- subprocess.run(argsCall)
|
|
|
+ subprocess.Popen(argsCall)
|
|
|
|
|
|
#spath=pathlib.Path(scriptFile)
|
|
|
#print('script: {} [{}]{}'.format(scriptFile,spath.parent,spath.stem))
|