whoops! one oversight

This commit is contained in:
brent s. 2017-04-11 08:30:09 -04:00
parent 60791f1596
commit e3236eb0d6
1 changed files with 2 additions and 3 deletions

View File

@ -40,8 +40,7 @@ def getConfig(conf_file='/etc/bdisk/build.ini'):
'/opt/dev/bdisk/build.ini',
'/opt/dev/bdisk/extra/build.ini',
'/opt/dev/bdisk/extra/dist.build.ini',
currentdir_user,
currentdir_def]
currentdir_user]
# if we weren't given one/using the default...
if conf_file == '/etc/bdisk/build.ini':
if not os.path.isfile(conf_file):
@ -51,7 +50,7 @@ def getConfig(conf_file='/etc/bdisk/build.ini'):
break
else:
conf = conf_file
defconf = '{0}/../extra/dist.build.ini'.format(os.path.dirname(os.path.realpath(__file__)))
defconf = os.path.abspath('{0}/../extra/dist.build.ini'.format(os.path.dirname(os.path.realpath(__file__))))
if not conf:
# okay, so let's check for distributed/"blank" ini's
# since we can't seem to find one.