Trisurf Monte Carlo simulator
Samo Penic
2016-05-16 2ded03f42abfc374f106d8b17e1ed0f8c071aa67
Again... fix in getStatus.  proc.status is a function in newere versions of python
1 files modified
4 ■■■■ changed files
python/trisurf/trisurf.py 4 ●●●● patch | view | raw | blame | history
python/trisurf/trisurf.py
@@ -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