-
-# Copyright (c) 2009, 2010, 2011, 2013 Jack Kaliko <kaliko@azylum.org>
+# Copyright (c) 2009, 2010, 2011, 2013, 2014 Jack Kaliko <kaliko@azylum.org>
self.log.debug('[%s] present in conf file' % section)
for option in self.defaults[section]:
if self.config.has_option(section, option):
self.log.debug('[%s] present in conf file' % section)
for option in self.defaults[section]:
if self.config.has_option(section, option):
- #self.log.debug(u'option "%s" set to "%s" in conf. file' %
- # (option, self.config.get(section, option)))
+ #self.log.debug('option "%s" set to "%s" in conf. file'%
+ # (option, self.config.get(section, option)))
elif self.startopt.get('var_dir'):
# If var folder is provided via CLI set data_dir accordingly
data_dir = join(self.startopt.get('var_dir'))
elif self.startopt.get('var_dir'):
# If var folder is provided via CLI set data_dir accordingly
data_dir = join(self.startopt.get('var_dir'))
data_dir = join(homedir, '.local', 'share', DIRNAME)
else:
self.log.error('Can\'t find a suitable location for data folder (XDG_DATA_HOME)')
data_dir = join(homedir, '.local', 'share', DIRNAME)
else:
self.log.error('Can\'t find a suitable location for data folder (XDG_DATA_HOME)')
pass
elif environ.get('XDG_CONFIG_HOME'):
conf_dir = join(environ.get('XDG_CONFIG_HOME'), DIRNAME)
pass
elif environ.get('XDG_CONFIG_HOME'):
conf_dir = join(environ.get('XDG_CONFIG_HOME'), DIRNAME)
conf_dir = join(homedir, '.config', DIRNAME)
# Create conf_dir if necessary
if not isdir(conf_dir):
conf_dir = join(homedir, '.config', DIRNAME)
# Create conf_dir if necessary
if not isdir(conf_dir):