We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d2f11b commit 29cf6a5Copy full SHA for 29cf6a5
elixir/lib.py
@@ -196,19 +196,17 @@ def autoBytes(arg):
196
197
def getDataDir():
198
try:
199
- dir=os.environ['LXR_DATA_DIR']
+ return os.environ['LXR_DATA_DIR']
200
except KeyError:
201
print(sys.argv[0] + ': LXR_DATA_DIR needs to be set')
202
exit(1)
203
- return dir
204
205
def getRepoDir():
206
207
- dir=os.environ['LXR_REPO_DIR']
+ return os.environ['LXR_REPO_DIR']
208
209
print(sys.argv[0] + ': LXR_REPO_DIR needs to be set')
210
211
212
213
def currentProject():
214
return os.path.basename(os.path.dirname(getDataDir()))
0 commit comments