elixir/lib: fix error case of getDataDir() & getRepoDir()
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
This commit is contained in:
parent
973d00665e
commit
0d2f11baba
1 changed files with 2 additions and 2 deletions
|
|
@ -198,7 +198,7 @@ def getDataDir():
|
||||||
try:
|
try:
|
||||||
dir=os.environ['LXR_DATA_DIR']
|
dir=os.environ['LXR_DATA_DIR']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
print(argv[0] + ': LXR_DATA_DIR needs to be set')
|
print(sys.argv[0] + ': LXR_DATA_DIR needs to be set')
|
||||||
exit(1)
|
exit(1)
|
||||||
return dir
|
return dir
|
||||||
|
|
||||||
|
|
@ -206,7 +206,7 @@ def getRepoDir():
|
||||||
try:
|
try:
|
||||||
dir=os.environ['LXR_REPO_DIR']
|
dir=os.environ['LXR_REPO_DIR']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
print(argv[0] + ': LXR_REPO_DIR needs to be set')
|
print(sys.argv[0] + ': LXR_REPO_DIR needs to be set')
|
||||||
exit(1)
|
exit(1)
|
||||||
return dir
|
return dir
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue