Improve dunikey finding

This commit is contained in:
poka 2020-12-03 09:19:24 +01:00
parent 1d4a76c58b
commit b1bbcfdec3
1 changed files with 5 additions and 2 deletions

View File

@ -105,9 +105,12 @@ else:
dunikey = keyPath dunikey = keyPath
else: else:
keyPath = False keyPath = False
if not os.path.isfile(dunikey):
HOME = os.getenv("HOME")
dunikey = HOME + dunikey
if not os.path.isfile(dunikey): if not os.path.isfile(dunikey):
HOME = os.getenv("HOME") sys.stderr.write('Le fichier de trousseau {0} est introuvable.\n'.format(dunikey))
dunikey = HOME + os.getenv('DUNIKEY') sys.exit(1)
# Build cesiumMessaging class # Build cesiumMessaging class