chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a nontrivial test that actually works
[disorder]
/
python
/
disorder.py.in
diff --git
a/python/disorder.py.in
b/python/disorder.py.in
index eb5850700fbd45a4889889836db4de64e4fbe9e8..5becda13e6dd771e5afdc8a4643e51f1ad4ed733 100644
(file)
--- a/
python/disorder.py.in
+++ b/
python/disorder.py.in
@@
-53,6
+53,7
@@
import locale
_configfile = "pkgconfdir/config"
_dbhome = "pkgstatedir"
_configfile = "pkgconfdir/config"
_dbhome = "pkgstatedir"
+_userconf = True
# various regexps we'll use
_ws = re.compile(r"^[ \t\n\r]+")
# 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)
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'
self._readfile(passfile)
self.state = 'disconnected'