Do not try to find .qmake.conf past the root directory
In case of .qmake.conf not existing, this would result in an infinite loop. Change-Id: I577aaed7a502efb7b01dc6b199dcf464358bf5a9 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
1826fa978a
commit
e3c4870feb
@ -286,7 +286,11 @@ def find_qmake_conf(project_file_path: str = "") -> str:
|
||||
if os.path.isfile(maybe_file):
|
||||
return maybe_file
|
||||
else:
|
||||
last_cwd = cwd
|
||||
cwd = os.path.dirname(cwd)
|
||||
if last_cwd == cwd:
|
||||
# reached the top level directory, stop looking
|
||||
break
|
||||
|
||||
print(f"Warning: could not find .qmake.conf file")
|
||||
return ""
|
||||
|
Loading…
Reference in New Issue
Block a user