okay. FINALLY fixed the weird issue with arbitrary paths

This commit is contained in:
brent s. 2017-04-11 08:27:18 -04:00
parent f37221c833
commit 60791f1596

View File

@ -29,7 +29,7 @@ def getConfig(conf_file='/etc/bdisk/build.ini'):
# define some defailt conf paths in case we're installed by # define some defailt conf paths in case we're installed by
# a package manager. in order of the paths we should search. # a package manager. in order of the paths we should search.
currentdir = os.path.dirname(os.path.realpath(__file__)) currentdir = os.path.dirname(os.path.realpath(__file__))
currentdir_user = os.path.abspath('{0}/../dist.build.ini'.format(currentdir)) currentdir_user = os.path.abspath('{0}/../build.ini'.format(currentdir))
currentdir_def = os.path.abspath('{0}/../extra/dist.build.ini'.format(currentdir)) currentdir_def = os.path.abspath('{0}/../extra/dist.build.ini'.format(currentdir))
default_conf_paths = ['/etc/bdisk/build.ini', default_conf_paths = ['/etc/bdisk/build.ini',
'/usr/share/bdisk/build.ini', '/usr/share/bdisk/build.ini',