Skip to content

Commit a893274

Browse files
fix fstring
1 parent ad2e771 commit a893274

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

ner_environment/build_system/build_system.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def fix_compile_commands():
359359

360360
toolchain_name_ext = toolchain_name + ".tar.xz"
361361

362-
if os.path.exists(f'{os.environ.get('VIRTUAL_ENV')}/{toolchain_name}'):
362+
if os.path.exists(f"{os.environ.get('VIRTUAL_ENV')}/{toolchain_name}"):
363363
pass
364364
else:
365365
# download the toolchain if it doesnt exist
@@ -385,10 +385,10 @@ def fix_compile_commands():
385385
item['file'] = item['file'].replace('/home/app', os.getcwd())
386386
item['output'] = item['output'].replace('/home/app', os.getcwd())
387387

388-
item['directory'] = item['directory'].replace(f'/home/dev/{docker_toolchain_name}', f'{os.environ.get('VIRTUAL_ENV')}/{toolchain_name}')
389-
item['command'] = item['command'].replace(f'/home/dev/{docker_toolchain_name}', f'{os.environ.get('VIRTUAL_ENV')}/{toolchain_name}')
390-
item['file'] = item['file'].replace(f'/home/dev/{docker_toolchain_name}', f'{os.environ.get('VIRTUAL_ENV')}/{toolchain_name}')
391-
item['output'] = item['output'].replace(f'/home/dev/{docker_toolchain_name}', f'{os.environ.get('VIRTUAL_ENV')}/{toolchain_name}')
388+
item['directory'] = item['directory'].replace(f"/home/dev/{docker_toolchain_name}", f"{os.environ.get('VIRTUAL_ENV')}/{toolchain_name}")
389+
item['command'] = item['command'].replace(f"/home/dev/{docker_toolchain_name}", f"{os.environ.get('VIRTUAL_ENV')}/{toolchain_name}")
390+
item['file'] = item['file'].replace(f"/home/dev/{docker_toolchain_name}", f"{os.environ.get('VIRTUAL_ENV')}/{toolchain_name}")
391+
item['output'] = item['output'].replace(f"/home/dev/{docker_toolchain_name}", f"{os.environ.get('VIRTUAL_ENV')}/{toolchain_name}")
392392

393393
with open(f'{os.getcwd()}/build/compile_commands.json', "w") as f:
394394
json.dump(jsf, f)

0 commit comments

Comments
 (0)