diff options
Diffstat (limited to 'build_scripts/qp5_tool.py')
| -rw-r--r-- | build_scripts/qp5_tool.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build_scripts/qp5_tool.py b/build_scripts/qp5_tool.py index 66b559d8f..4ec0d6396 100644 --- a/build_scripts/qp5_tool.py +++ b/build_scripts/qp5_tool.py @@ -389,7 +389,8 @@ if __name__ == '__main__': while not Path(".git").exists(): cwd = Path.cwd() - if str(cwd) == '/' or (IS_WINDOWS and len(cwd) < 4): + cwd_s = os.fspath(cwd) + if cwd_s == '/' or (IS_WINDOWS and len(cwd_s) < 4): warnings.warn('Unable to find git root', RuntimeWarning) sys.exit(-1) os.chdir(cwd.parent) |
