mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-20 04:26:28 +02:00
[core] declaring "global" var access is useless
This commit is contained in:
parent
b9a5c00279
commit
2ad55352ee
2 changed files with 1 additions and 8 deletions
|
@ -298,12 +298,11 @@ class LogManager:
|
|||
return logging.NOTSET
|
||||
|
||||
|
||||
runningProcesses = {}
|
||||
runningProcesses: dict[str, "NodeChunk"] = {}
|
||||
|
||||
|
||||
@atexit.register
|
||||
def clearProcessesStatus():
|
||||
global runningProcesses
|
||||
for k, v in runningProcesses.items():
|
||||
v.upgradeStatusTo(Status.KILLED)
|
||||
|
||||
|
@ -474,7 +473,6 @@ class NodeChunk(BaseObject):
|
|||
self._processInIsolatedEnvironment()
|
||||
return
|
||||
|
||||
global runningProcesses
|
||||
runningProcesses[self.name] = self
|
||||
self._status.setNode(self.node)
|
||||
self._status.initStartCompute()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue