Explorar el Código

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 hace 8 años
padre
commit
05047a2dff
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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,