python/elearning.py: fix dumb mistake
This commit is contained in:
parent
cfa3c06dbb
commit
3acadee72f
@ -98,9 +98,8 @@ def getenv(var, fallback):
|
|||||||
Read an environment variable or use
|
Read an environment variable or use
|
||||||
a call a function for a default value.
|
a call a function for a default value.
|
||||||
'''
|
'''
|
||||||
val = os.getenv(var)
|
val = os.environ.get(var)
|
||||||
if val is None:
|
return fallback() if val is None else val
|
||||||
return fallback()
|
|
||||||
|
|
||||||
|
|
||||||
def open_course(url, args):
|
def open_course(url, args):
|
||||||
|
Loading…
Reference in New Issue
Block a user