From 7a11a7a2a7d6b2b4b7ad285a1a7cddab44040a46 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@fe.uni-lj.si> Date: Fri, 06 May 2016 11:05:18 +0000 Subject: [PATCH] Fixed handling of inline functions with newr versions of gcc. Added -fgnu89-inline flag into gcc compiler line. --- python/trisurf/trisurf.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/python/trisurf/trisurf.py b/python/trisurf/trisurf.py index b055f19..b1f99b6 100644 --- a/python/trisurf/trisurf.py +++ b/python/trisurf/trisurf.py @@ -12,7 +12,7 @@ import psutil import time import datetime -from subprocess import call, Popen +import subprocess # Process status TS_NOLOCK=0 # lock file does not exist @@ -313,7 +313,7 @@ params=["trisurf", "--restore-from-vtk",self.snapshotFile]+self.runArgs else: params=["trisurf"]+self.runArgs - Popen (params, stdout=False) + subprocess.Popen (params, stdout=subprocess.DEVNULL) cwd.goto() else: print("Process already running. Not starting\n") @@ -352,7 +352,7 @@ statustxt="Running" if(self.statistics.fileOK): - report=[time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(int(self.statistics.startDate))),str(datetime.timedelta(microseconds=(int(self.tape.config['iterations'])-int(self.statistics.last))*self.statistics.dT)*1000), statustxt, pid, str(self.Dir.fullpath()), self.Comment.getText()] + report=[time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(int(self.statistics.startDate))),str(datetime.timedelta(microseconds=(int(self.tape.config['iterations'])-int(self.statistics.last))*self.statistics.dT)*1000000), statustxt, pid, str(self.Dir.fullpath()), self.Comment.getText()] else: report=["N/A","N/A\t",statustxt, pid, str(self.Dir.fullpath()), self.Comment.getText()] return report -- Gitblit v1.9.3