Skip to content

Commit

Permalink
Fix backslash escape pattern usage in setup.py for replacement of tem…
Browse files Browse the repository at this point in the history
…plate in Modelfile
  • Loading branch information
digithree committed Aug 15, 2024
1 parent 72d98d1 commit 8281693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def writeModelfile():
with open(MODELFILE_GENERATED, 'r') as file:
contents = file.read()
for key, value in mapper.items():
contents = re.sub(f"\[{str(key)}\]", value, contents)
contents = re.sub(f"\\[{str(key)}\\]", value, contents)
with open(MODELFILE_GENERATED, 'w') as file:
file.write(contents)

Expand Down

0 comments on commit 8281693

Please sign in to comment.