Commit 97ecc7a7 by yarko

fix class var; set SERVICE_VARIANT to lms by default if unset (helps "paver --help" work cleanly)

parent cc86b656
...@@ -24,12 +24,10 @@ class Env(object): ...@@ -24,12 +24,10 @@ class Env(object):
# If service variant not configured in env, then pass the correct # If service variant not configured in env, then pass the correct
# environment for lms / cms # environment for lms / cms
if not SERVICE_VARIANT: # this will intentionally catch ""; if not SERVICE_VARIANT: # this will intentionally catch "";
args = sys.argv[1:] if any(i in sys.argv[1:] for i in ('cms', 'studio')):
if 'lms' in args: SERVICE_VARIANT = 'cms'
SERVICE_VARIANT = 'lms' else:
elif any(i in args for i in ('cms', 'studio')): SERVICE_VARIANT = 'lms'
SERVICE_VARIANT = 'cms'
@lazy @lazy
def env_tokens(self): def env_tokens(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment