MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / isProcessRunning

Function isProcessRunning

src/astroprint/util/__init__.py:20–32  ·  view source on GitHub ↗
(processId)

Source from the content-addressed store, hash-verified

18 return output
19
20def isProcessRunning(processId):
21 nameProcess = processId
22
23 lastChar = processId[len(processId)-1]
24 processId = processId[:-1]
25 processId = processId + '[' + lastChar + ']'
26
27 output = findProcess( processId )
28
29 if nameProcess in output:
30 return True
31 else:
32 return False
33
34class interval(thread):
35 def __init__(self,period, callback,params=None):

Callers

nothing calls this directly

Calls 1

findProcessFunction · 0.85

Tested by

no test coverage detected