From f5da6e18fcd18c2ba24dd8eeb3dd48cb1d9f7746 Mon Sep 17 00:00:00 2001 From: Uleat Date: Mon, 22 Jul 2019 23:27:38 -0400 Subject: [PATCH] Changed 'vcxproj_dependencies.py' script criteria to allow zero-length pretext headers in multiple-argument hints [skip ci] --- utils/scripts/vcxproj_dependencies.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/utils/scripts/vcxproj_dependencies.py b/utils/scripts/vcxproj_dependencies.py index 581103506..6c0453f4a 100644 --- a/utils/scripts/vcxproj_dependencies.py +++ b/utils/scripts/vcxproj_dependencies.py @@ -703,9 +703,11 @@ def is_hint_in_path(hint, path): elif (joined_index == -1 and not pretext_index == -1) or\ (not joined_index == -1 and not pretext_index == -1 and joined_index > pretext_index): partial_hints = hint.split('&&', 1) - found_index = path.find(partial_hints[0]) - if found_index == -1: - return False + found_index = 0 + if not partial_hints[0] == '': + found_index = path.find(partial_hints[0]) + if found_index == -1: + return False start_index = found_index + len(partial_hints[0]) for alt_hint in partial_hints[1].split('^'):