@staticmethod<EOL><INDENT>def init_environment():<DEDENT>
base_path = os.path.abspath(os.path.dirname(__file__))<EOL>env_path = '<STR_LIT>'.format(base_path)<EOL>if os.path.exists(env_path):<EOL><INDENT>with open(env_path) as f:<EOL><INDENT>lines = f.readlines()<EOL>for line in lines:<EOL><INDENT>var = line.strip().split('<STR_LIT:=>')<EOL>if len(var) == <NUM_LIT:2>:<EOL><INDENT>os.environ[var[<NUM_LIT:0>]] = var[<NUM_LIT:1>]<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
Allow variables assigned in .env available using
           os.environ.get('VAR_NAME')