Browse Source

Remove old configuration files before configure

Ignacio Gago 9 years ago
parent
commit
55715649eb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/chutney/TorNet.py

+ 2 - 1
lib/chutney/TorNet.py

@@ -20,6 +20,7 @@ import sys
 import re
 import errno
 import time
+import shutil
 
 import chutney.Templating
 import chutney.Traffic
@@ -747,11 +748,11 @@ class Network(object):
             n.getBuilder().checkConfig(self)
 
     def configure(self):
+        shutil.rmtree(os.path.join(os.getcwd(),'net','nodes'),ignore_errors=True)
         network = self
         altauthlines = []
         bridgelines = []
         builders = [n.getBuilder() for n in self._nodes]
-
         self._checkConfig()
 
         # XXX don't change node names or types or count if anything is