mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
use rfind instead of index to avoid prefix clashes #534
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ffaaa1ff34
commit
5fdea2cb18
1 changed files with 1 additions and 1 deletions
|
@ -590,7 +590,7 @@ def mk_def_file_internal(defname, dll_name, export_header_files):
|
|||
|
||||
def path_after_src(h_file):
|
||||
h_file = h_file.replace("\\","/")
|
||||
idx = h_file.index("src/")
|
||||
idx = h_file.rfind("src/")
|
||||
if idx == -1:
|
||||
return h_file
|
||||
return h_file[idx + 4:]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue