Skip to content

Commit

Permalink
Avoid colon in paths
Browse files Browse the repository at this point in the history
Colons are forbidden in paths on windows. Replace them with __.
  • Loading branch information
roblabla committed Oct 9, 2023
1 parent 2b6fda8 commit ab20b28
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/generate_function_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ def generate_function_diff(fn_name):
diff_dir = base_dir / 'diff'
resource_dir = base_dir / 'resources'

orig_asm_path = diff_dir / fn_name / 'orig.asm'
reimpl_asm_path = diff_dir / fn_name / 'reimpl.asm'
fs_fn_name = fn_name.replace(':', '__')

orig_asm_path = diff_dir / fs_fn_name / 'orig.asm'
reimpl_asm_path = diff_dir / fs_fn_name / 'reimpl.asm'

os.makedirs(diff_dir / fn_name, exist_ok=True)
with open(orig_asm_path, 'w') as out:
Expand Down

0 comments on commit ab20b28

Please sign in to comment.