소스 검색

Don't override built-in name 'dir'

Daniel Martí 9 년 전
부모
커밋
31af7760de
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      lib/chutney/TorNet.py

+ 2 - 2
lib/chutney/TorNet.py

@@ -441,12 +441,12 @@ class LocalNodeController(NodeController):
         pid = self.getPid()
         pid = self.getPid()
         running = self.isRunning(pid)
         running = self.isRunning(pid)
         nick = self._env['nick']
         nick = self._env['nick']
-        dir = self._env['dir']
+        datadir = self._env['dir']
         if running:
         if running:
             if listRunning:
             if listRunning:
                 print "%s is running with PID %s" % (nick, pid)
                 print "%s is running with PID %s" % (nick, pid)
             return True
             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:
             if listNonRunning:
                 print "%s seems to have crashed, and left core file core.%s" % (
                 print "%s seems to have crashed, and left core file core.%s" % (
                     nick, pid)
                     nick, pid)