Skip to content

Commit 0d2f11b

Browse files
committed
elixir/lib: fix error case of getDataDir() & getRepoDir()
Signed-off-by: Théo Lebrun <[email protected]>
1 parent 973d006 commit 0d2f11b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elixir/lib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,15 @@ def getDataDir():
198198
try:
199199
dir=os.environ['LXR_DATA_DIR']
200200
except KeyError:
201-
print(argv[0] + ': LXR_DATA_DIR needs to be set')
201+
print(sys.argv[0] + ': LXR_DATA_DIR needs to be set')
202202
exit(1)
203203
return dir
204204

205205
def getRepoDir():
206206
try:
207207
dir=os.environ['LXR_REPO_DIR']
208208
except KeyError:
209-
print(argv[0] + ': LXR_REPO_DIR needs to be set')
209+
print(sys.argv[0] + ': LXR_REPO_DIR needs to be set')
210210
exit(1)
211211
return dir
212212

0 commit comments

Comments
 (0)