Skip to content

Commit

Permalink
fix gr_python_install
Browse files Browse the repository at this point in the history
Signed-off-by: 毛亚琛 <[email protected]>
  • Loading branch information
clysto authored and willcode committed Dec 11, 2023
1 parent 0521a78 commit 6404f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Modules/GrPython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ function(GR_PYTHON_INSTALL)
DEPENDS ${pyfile}
COMMAND
${PYTHON_EXECUTABLE} -c
"import re; R=re.compile('^\#!.*$\\n',flags=re.MULTILINE); open(r'${pyexefile}','w').write(r'\#!${pyexe_native}'+'\\n'+R.sub('',open(r'${pyfile}','r').read()))"
"import re; R=re.compile('^\#!.*$\\n',flags=re.MULTILINE); open(r'${pyexefile}','w',encoding='utf-8').write(r'\#!${pyexe_native}'+'\\n'+R.sub('',open(r'${pyfile}','r',encoding='utf-8').read()))"
COMMENT "Shebangin ${pyfile_name}"
VERBATIM)

Expand Down

0 comments on commit 6404f37

Please sign in to comment.