Add global configs
authorMichael Neuling <mikey@neuling.org>
Tue, 21 Nov 2006 02:06:39 +0000 (13:06 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 12 Nov 2009 23:58:42 +0000 (10:58 +1100)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
bitfield

index 8aab6f8b617bd868264f50f12a392f4bf7c43285..6f1bcefb2b2fd872fa47870816a05d870bb5fcd9 100644 (file)
--- a/bitfield
+++ b/bitfield
@@ -15,8 +15,9 @@ from getopt import getopt, GetoptError
 
 # List of paths to look for configuration files. If a directory is specified,
 # it will be (recursively) scanned for .conf files.
-configs = [os.path.join(os.getenv("HOME"), ".bitfields.conf"),
-               os.path.join(os.getenv("HOME"), ".bitfields.d")]
+configs = [os.path.join(os.getenv("HOME"), ".bitfield.conf"),
+               os.path.join(os.getenv("HOME"), ".bitfield.d"),
+               "/etc/bitfield.d", "/etc/bitfield", ]
 
 class bitfield:
        def __init__(self, bits, name):