Skip to content

Commit

Permalink
Fixed regex for python setup install
Browse files Browse the repository at this point in the history
  • Loading branch information
pariterre committed Jun 26, 2024
1 parent 73c40fa commit 84b1917
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 @@ -5,7 +5,7 @@

with open(f"{dir_path}/CMakeLists.txt") as file:
for line in file:
match = re.search("project\(ezc3d VERSION ([0-9].[0-9].[0-9])\)", line)
match = re.search(re.compile("project\\(ezc3d VERSION (\\d*\\.\\d*\\.\\d*)\\)"), line)
if match is not None:
version = match[1]
break
Expand Down

0 comments on commit 84b1917

Please sign in to comment.