Browse Source

Don't override built-in name 'dir'

Daniel Martí 9 years ago
parent
commit
31af7760de
1 changed files with 2 additions and 2 deletions
  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)