Browse Source

Allow specifying the Chutney data directory.

It is controlled with the CHUTNEY_DATA_DIR environment variable, but
defaults to the 'net' sub-directory of the Chutney source tree.
anonym 8 years ago
parent
commit
05047a2dff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/chutney/TorNet.py

+ 1 - 1
lib/chutney/TorNet.py

@@ -669,7 +669,7 @@ DEFAULTS = {
     'hs_directory': 'hidden_service',
     'hs-hostname': None,
     'connlimit': 60,
-    'net_base_dir': 'net',
+    'net_base_dir': os.environ.get('CHUTNEY_DATA_DIR', 'net'),
     'tor': os.environ.get('CHUTNEY_TOR', 'tor'),
     'tor-gencert': os.environ.get('CHUTNEY_TOR_GENCERT', None),
     'auth_cert_lifetime': 12,