Browse Source

use CHUTNEY_DATA_DIR in one more place

Nick Mathewson 7 years ago
parent
commit
9e329c4319
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/chutney/TorNet.py

+ 2 - 1
lib/chutney/TorNet.py

@@ -807,7 +807,8 @@ class Network(object):
         self._nodes.append(n)
 
     def move_aside_nodes(self):
-        nodesdir = os.path.join(os.getcwd(), 'net', 'nodes')
+        net_base_dir = os.environ.get('CHUTNEY_DATA_DIR', 'net')
+        nodesdir = os.path.join(net_base_dir, 'nodes')
 
         if not os.path.exists(nodesdir):
             return