Reorder configuration file reading order.
authorJeremy Kerr <jk@ozlabs.org>
Tue, 21 Nov 2006 04:14:44 +0000 (15:14 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 12 Nov 2009 23:58:44 +0000 (10:58 +1100)
By reading the user's config files later, we can make
aliasing possible

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
bitfield

index 6f1bcefb2b2fd872fa47870816a05d870bb5fcd9..27605d33bf3a7cdcb52e3f3f686f8b0c71b43a89 100644 (file)
--- a/bitfield
+++ b/bitfield
@@ -15,9 +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.
 
 # 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"), ".bitfield.conf"),
+configs = ["/etc/bitfield.d", "/etc/bitfield",
                os.path.join(os.getenv("HOME"), ".bitfield.d"),
                os.path.join(os.getenv("HOME"), ".bitfield.d"),
-               "/etc/bitfield.d", "/etc/bitfield", ]
+               os.path.join(os.getenv("HOME"), ".bitfield.conf")]
 
 class bitfield:
        def __init__(self, bits, name):
 
 class bitfield:
        def __init__(self, bits, name):