from util import user_dir, print_error, print_msg
-SYSTEM_CONFIG_PATH = "/etc/electrum.conf"
+SYSTEM_CONFIG_PATH = "/etc/electrum-nvc.conf"
config = None
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:
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()
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")