You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
679 B
16 lines
679 B
import os
|
|
import utils.constants as const
|
|
|
|
|
|
def check_env_variables():
|
|
if const.TRANSLATE_ENV_VAR not in os.environ:
|
|
print(const.WARNING, 'Please set the ', const.TRANSLATE_ENV_VAR, ' Environment Variable to continue....', const.END)
|
|
return False
|
|
if const.MYSQL_PASS_ENV_VAR not in os.environ:
|
|
print(const.WARNING, 'Please set the ', const.MYSQL_PASS_ENV_VAR, ' Environment Variable to continue....', const.END)
|
|
return False
|
|
if const.MYSQL_HOST_ENV_VAR not in os.environ:
|
|
print(const.WARNING, 'Please set the ', const.MYSQL_HOST_ENV_VAR, ' Environment Variable to continue....', const.END)
|
|
return False
|
|
return True
|