Commit e4676345 authored by Maxime Hubert's avatar Maxime Hubert
Browse files

quickfix: environemnt var not being exported properly

parent 87869a56
Pipeline #144042 passed with stage
in 34 seconds
......@@ -14,9 +14,9 @@ ACTEV_CLI_ENVIRONMENT_FILEPATH=os.path.join(current_dir, 'actev_cli_environment.
def export_variable(name, value):
'''Increment the bash environment file with a key and a value
append_environment('export {}="{}";'.format(name, value))
append_environment('export {}="{}";\n'.format(name, value))
def append_environment(content='', mode='w'):
def append_environment(content=''):
'''Increment the bash environment file with some str content.
init_environment(content, mode='a')
......@@ -24,11 +24,11 @@ def append_environment(content='', mode='w'):
def init_environment(content='', mode='w'):
'''Overwrite or create the bash environment file with some str content.
with open(ACTEV_CLI_ENVIRONMENT_FILEPATH, 'w') as env_file:
with open(ACTEV_CLI_ENVIRONMENT_FILEPATH, mode) as env_file:
def activate_environment():
'''Loads the environment variables from ACTEV_CLI_ENVIRONMENT_FILEPATH
into the current environment.
\ No newline at end of file
Supports Markdown
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