From: Jeremy Kerr Date: Tue, 21 Nov 2006 04:14:44 +0000 (+1100) Subject: Reorder configuration file reading order. X-Git-Url: https://git.ozlabs.org/?p=bitfield;a=commitdiff_plain;h=f28ac723f98f1618f4cbf203cf226f1e9c37cdc4;ds=inline Reorder configuration file reading order. By reading the user's config files later, we can make aliasing possible Signed-off-by: Jeremy Kerr --- diff --git a/bitfield b/bitfield index 6f1bcef..27605d3 100644 --- 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. -configs = [os.path.join(os.getenv("HOME"), ".bitfield.conf"), +configs = ["/etc/bitfield.d", "/etc/bitfield", 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):