Explorar o código

Don't override built-in name 'dir'

Daniel Martí %!s(int64=9) %!d(string=hai) anos
pai
achega
31af7760de
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      lib/chutney/TorNet.py

+ 2 - 2
lib/chutney/TorNet.py

@@ -441,12 +441,12 @@ class LocalNodeController(NodeController):
         pid = self.getPid()
         running = self.isRunning(pid)
         nick = self._env['nick']
-        dir = self._env['dir']
+        datadir = self._env['dir']
         if running:
             if listRunning:
                 print "%s is running with PID %s" % (nick, pid)
             return True
-        elif os.path.exists(os.path.join(dir, "core.%s" % pid)):
+        elif os.path.exists(os.path.join(datadir, "core.%s" % pid)):
             if listNonRunning:
                 print "%s seems to have crashed, and left core file core.%s" % (
                     nick, pid)