Skip to content

Commit 7bf5fbd

Browse files
[Automated Commit] Format Codebase [skip ci]
1 parent 7e1aa25 commit 7bf5fbd

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

automation/script/module.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,12 @@ def __init__(self, action_object, automation_file, run_args={}):
132132
r = _update_env(self.env, 'MLC_USER_RUN_DIR', current_path)
133133
if r['return'] > 0:
134134
return r
135-
135+
136136
if self.const.get('MLC_USER_RUN_DIR', '') == '':
137-
r = _update_env(self.const, 'MLC_USER_RUN_DIR', self.env['MLC_USER_RUN_DIR'])
137+
r = _update_env(
138+
self.const,
139+
'MLC_USER_RUN_DIR',
140+
self.env['MLC_USER_RUN_DIR'])
138141
if r['return'] > 0:
139142
return r
140143

@@ -5589,7 +5592,8 @@ def update_env_from_input_mapping(
55895592
path_val = os.path.expanduser(inp[key])
55905593

55915594
# 2. Check if the path is NOT already absolute
5592-
if not os.path.isabs(path_val) and env.get('MLC_USER_RUN_DIR', '') != '':
5595+
if not os.path.isabs(path_val) and env.get(
5596+
'MLC_USER_RUN_DIR', '') != '':
55935597
base_dir = env["MLC_USER_RUN_DIR"]
55945598

55955599
# Join the base dir with the relative path and normalize it

0 commit comments

Comments
 (0)