Initial novacoin support
[electrum-nvc.git] / lib / simple_config.py
index 0824c04..b1dce60 100644 (file)
@@ -4,7 +4,7 @@ import os
 
 from util import user_dir, print_error, print_msg
 
-SYSTEM_CONFIG_PATH = "/etc/electrum.conf"
+SYSTEM_CONFIG_PATH = "/etc/electrum-nvc.conf"
 
 config = None
 
@@ -96,7 +96,7 @@ class SimpleConfig(object):
     def set_key(self, key, value, save = True):
         if not self.is_modifiable(key):
             print "Warning: not changing key '%s' because it is not modifiable" \
-                  " (passed as command line option or defined in /etc/electrum.conf)"%key
+                  " (passed as command line option or defined in /etc/electrum-nvc.conf)"%key
             return
 
         with self.lock:
@@ -134,13 +134,13 @@ class SimpleConfig(object):
             os.chmod(path, stat.S_IREAD | stat.S_IWRITE)
 
 def read_system_config(path=SYSTEM_CONFIG_PATH):
-    """Parse and return the system config settings in /etc/electrum.conf."""
+    """Parse and return the system config settings in /etc/electrum-nvc.conf."""
     result = {}
     if os.path.exists(path):
         try:
             import ConfigParser
         except ImportError:
-            print "cannot parse electrum.conf. please install ConfigParser"
+            print "cannot parse electrum-nvc.conf. please install ConfigParser"
             return
 
         p = ConfigParser.ConfigParser()
@@ -154,7 +154,7 @@ def read_system_config(path=SYSTEM_CONFIG_PATH):
     return result
 
 def read_user_config(path):
-    """Parse and store the user config settings in electrum.conf into user_config[]."""
+    """Parse and store the user config settings in electrum-nvc.conf into user_config[]."""
     if not path: return {}  # Return a dict, since we will call update() on it.
 
     config_path = os.path.join(path, "config")