Skip to content

Commit

Permalink
Avoid invalid escape sequence errors on Windows.
Browse files Browse the repository at this point in the history
Change-Id: I3ed566fb37f235190b5fe91dfd07f575173a6aca
Reviewed-on: https://code-review.googlesource.com/c/re2/+/62711
Reviewed-by: Alex Chernyakhovsky <[email protected]>
Reviewed-by: Paul Wankadia <[email protected]>
  • Loading branch information
junyer committed Feb 16, 2024
1 parent 2aa303b commit d00d1e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def generate_python_toolchains(self):
cc_library(
name = "libraries",
)
""".format(interpreter_path=sys.executable,
""".format(interpreter_path=sys.executable.replace('\\', '/'),
major=sys.version_info.major,
minor=sys.version_info.minor))

Expand Down

0 comments on commit d00d1e9

Please sign in to comment.