From d50227ea034dae0fb6ee75a9a3941f786facaf16 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Sat, 07 Jan 2017 22:03:44 +0000 Subject: [PATCH] Web interface improved. Accepts analysis?analysis_name as arguments. --- trisurf/tsmgr.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/trisurf/tsmgr.py b/trisurf/tsmgr.py index 419c26b..518c6a1 100644 --- a/trisurf/tsmgr.py +++ b/trisurf/tsmgr.py @@ -305,7 +305,11 @@ remote_dir=host['remotebasepath'] else: remote_dir='trisurf_simulations' - output=host['_conn'].execute('python3 ./'+remote_dir+'/'+main.__file__+' -x '+" ".join(argv)) + #output=host['_conn'].execute('cd '+remote_dir) + #print(remote_dir) + #print(main.__file__) + #print('python3 '+main.__file__+' -x '+" ".join(argv)) + output=host['_conn'].execute('cd '+remote_dir+ '; python3 '+main.__file__+' -x '+" ".join(argv)) for line in output: print(line.replace('\n','')) -- Gitblit v1.9.3