mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +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
|
@ -590,7 +590,7 @@ def mk_def_file_internal(defname, dll_name, export_header_files):
|
||||||
|
|
||||||
def path_after_src(h_file):
|
def path_after_src(h_file):
|
||||||
h_file = h_file.replace("\\","/")
|
h_file = h_file.replace("\\","/")
|
||||||
idx = h_file.index("src/")
|
idx = h_file.rfind("src/")
|
||||||
if idx == -1:
|
if idx == -1:
|
||||||
return h_file
|
return h_file
|
||||||
return h_file[idx + 4:]
|
return h_file[idx + 4:]
|
||||||
|
|
Loading…
Reference in a new issue