/wizards/source/

llabora/cd-5.3'>distro/collabora/cd-5.3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2019-07-05 08:46:10 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2019-07-05 12:54:48 +0200
commit22c6ffc274a4dd29fdd6c0d02415139502bddae6 (patch)
tree8f481d307d16b52f6a2f94b1e6d6d3d6f80f6f06 /bin
parent13f73dcc15370df94001cc40883069f76ba317de (diff)
qtcreator: Make paths work with cygwin
Absolute paths in files created by GbuildToJson in Cygwin environment are Windows paths (like "C:/....'), while relative paths in the Python program executed in Cygwin are treated as Unix paths ('/cygdrive/c/....') which caused wrong relative paths to be generated by the call to 'os.relpath'. It would walk up to the root of the Windows path and then walk down the tree in the Unix file system path again. This converts the paths to absolute Windows paths first to avoid this issue. Change-Id: I2e3e6926e312d64aa18067933a5903ac7ad5d31a Reviewed-on: https://gerrit.libreoffice.org/75114 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>