From f28ac723f98f1618f4cbf203cf226f1e9c37cdc4 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 21 Nov 2006 15:14:44 +1100 Subject: [PATCH] Reorder configuration file reading order. By reading the user's config files later, we can make aliasing possible Signed-off-by: Jeremy Kerr --- bitfield | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): -- 2.39.2