chiark / gitweb /
add a nontrivial test that actually works
[disorder] / python / disorder.py.in
index dfaddbff71cbd2ebe442678c12da7407f319e977..5becda13e6dd771e5afdc8a4643e51f1ad4ed733 100644 (file)
@@ -53,6 +53,7 @@ import locale
 
 _configfile = "pkgconfdir/config"
 _dbhome = "pkgstatedir"
+_userconf = True
 
 # various regexps we'll use
 _ws = re.compile(r"^[ \t\n\r]+")
@@ -291,7 +292,7 @@ class client:
     self._readfile(_configfile)
     if os.path.exists(privconf):
       self._readfile(privconf)
-    if os.path.exists(passfile):
+    if os.path.exists(passfile) and _userconf:
       self._readfile(passfile)
     self.state = 'disconnected'
 
@@ -1042,4 +1043,3 @@ class monitor:
 # comment-column:40
 # fill-column:72
 # End:
-# arch-tag:eea975737c837febf73a000630b5ecc4