Python wrapper for running instances of trisurf-ng
Samo Penic
2017-01-13 a5f02142ff18ba618ca2e8162099199f69101094
Fixes a bug, when trying to copy initial snapshot. Happened to Miha once ;)
1 files modified
4 ■■■■ changed files
trisurf/tsmgr.py 4 ●●●● patch | view | raw | blame | history
trisurf/tsmgr.py
@@ -80,7 +80,7 @@
    for h in hosts:
        for r in h['runs']:
            if(r.isFromSnapshot):
                file_list.append(r.snapshotFilename)
                file_list.append(r.snapshotFile)
            else:
                file_list.append(r.tapeFilename)
    file_list.append(main.__file__)
@@ -310,7 +310,7 @@
            #print(remote_dir)
            #print(main.__file__)
            #print('python3 '+main.__file__+' -x '+" ".join(argv))
            output=host['_conn'].execute('cd '+remote_dir+ '; python3 '+main.__file__+' -x --originating-host ' +socket.gethostname()+" ".join(argv))
            output=host['_conn'].execute('cd '+remote_dir+ '; python3 '+main.__file__+' -x --originating-host ' +socket.gethostname()+" "+" ".join(argv))
            for line in output:
                print(line.replace('\n',''))