look for cfg file in ~/.local as well
This commit is contained in:
parent
ee30935983
commit
55829ad298
@ -195,8 +195,13 @@ def process_all_files(destfiles, dir_config):
|
||||
debug.debug(" ================ process_all_files ===============", 1)
|
||||
|
||||
def main():
|
||||
configfile = os.environ['HOME']+"/etc/userconfig.cfg"
|
||||
|
||||
configfile_destinations = [os.environ['HOME'] + "/etc/",
|
||||
os.environ['HOME'] + "/.local/etc"]
|
||||
configfile = ''
|
||||
for directory in configfile_destinations:
|
||||
if os.path.isfile(directory + "/userconfig.cfg"):
|
||||
configfile = directory + "/userconfig.cfg"
|
||||
break
|
||||
try:
|
||||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], "hdc:v", ["help", "debug", "config="])
|
||||
|
Loading…
Reference in New Issue
Block a user