Trisurf Monte Carlo simulator
Samo Penic
2016-05-20 37791bf67add4094040a9b8706450695805bf88f
python/trisurf/tsmgr.py
@@ -1,6 +1,6 @@
import sys, getopt
import tabulate
import subprocess,re
def printHelp():
   print('Python module tsmgr accept following switches:\n')
@@ -14,6 +14,16 @@
   print('[-h]               : print help');
def getTrisurfVersion():
   p = subprocess.Popen('trisurf --version', shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
   lines=p.stdout.readlines()
   version=re.findall(r'[0-9a-f]{7}(?:-dirty)?', lines[0].decode('ascii'))
   p.wait()
   if(len(version)):
      return version[0]
   else:
      return "unknown version"
def start(Runs):
   argv=sys.argv[1:]
   processno=0