python/elearning.py: fix dumb mistake

This commit is contained in:
Michele Guerini Rocco 2020-11-24 14:18:44 +01:00
parent cfa3c06dbb
commit 3acadee72f
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -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):