From 2ded03f42abfc374f106d8b17e1ed0f8c071aa67 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@fe.uni-lj.si> Date: Mon, 16 May 2016 10:00:08 +0000 Subject: [PATCH] Again... fix in getStatus. proc.status is a function in newere versions of python --- 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 c70630a..4387659 100644 --- a/python/trisurf/trisurf.py +++ b/python/trisurf/trisurf.py @@ -287,7 +287,7 @@ version=root.find('trisurfversion') self.tape=Tape() self.tape.setTape(tapetxt.text) - + def getPID(self): self.Dir=Directory(maindir=self.maindir,simdir=self.subdir) #self.Dir.makeifnotexist() @@ -324,8 +324,8 @@ return TS_NOLOCK if(psutil.pid_exists(int(pid))): proc= psutil.Process(int(pid)) - if proc.name=="trisurf": - if proc.status=="stopped": + if proc.name()=="trisurf": + if proc.status()=="stopped": return TS_STOPPED else: return TS_RUNNING -- Gitblit v1.9.3