diff twisted/plugins/libervia.py @ 417:2bd609d7dd65

server_side: use XDG recommended paths as the defaults
author souliane <souliane@mailoo.org>
date Sun, 23 Mar 2014 23:05:23 +0100
parents e9bc7854bce6
children 39b07289ff42
line wrap: on
line diff
--- a/twisted/plugins/libervia.py	Mon Mar 24 17:12:14 2014 +0100
+++ b/twisted/plugins/libervia.py	Sun Mar 23 23:05:23 2014 +0100
@@ -25,8 +25,7 @@
 
 from xdg.BaseDirectory import save_config_path
 from ConfigParser import SafeConfigParser, NoSectionError, NoOptionError
-from os.path import expanduser
-
+from sat.core.constants import Const
 try:
     from libervia_server import Libervia
     opt_params = Libervia.OPT_PARAMETERS
@@ -70,6 +69,6 @@
 
 config_path = save_config_path('sat')
 config = SafeConfigParser()
-config.read(map(expanduser, ['/etc/sat.conf', config_path + '/sat.conf', 'sat.conf', '.sat.conf']))
+config.read(Const.CONFIG_FILES)
 
 serviceMaker = LiberviaMaker()