From: Michael Neuling Date: Tue, 21 Nov 2006 02:06:39 +0000 (+1100) Subject: Add global configs X-Git-Url: https://git.ozlabs.org/?p=bitfield;a=commitdiff_plain;h=16a99be51e5256126d55557d368bd725a3510c7d;hp=b54954b5c1d9d8c014a041987b07634587baefcc Add global configs Signed-off-by: Jeremy Kerr --- diff --git a/bitfield b/bitfield index 8aab6f8..6f1bcef 100644 --- 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):