Skip to content

Commit

Permalink
avoid python warning
Browse files Browse the repository at this point in the history
..\pythonscript\installer\extractVersion.py:7: SyntaxWarning: invalid escape sequence '\P'
  • Loading branch information
chcg committed Dec 21, 2023
1 parent 70c3d04 commit e139dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installer/extractVersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import sys, os
import re

pathToVersionFile = os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), '..\PythonScript\src\PythonScriptVersion.h')
pathToVersionFile = os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), '..\\PythonScript\\src\\PythonScriptVersion.h')

versionHeader = open(pathToVersionFile, 'r')
versionRegex = re.compile(r'PYSCR_VERSION_STRING\s+"([0-9.]+)"')
Expand Down

0 comments on commit e139dcc

Please sign in to comment.