From 2a39f3598392455b6167a91a06a5999a05ce26ba Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Fri, 22 Apr 2022 12:25:09 +0200 Subject: [PATCH] Icon Svg export.py: Make id to dir conversion work on Linux Still works on Windows. Change-Id: Ic16618b7d57d9d2f9d3c6d817c20eb4860dd1e22 Reviewed-by: Alessandro Portale --- src/tools/icons/export.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/icons/export.py b/src/tools/icons/export.py index 2ead1ceab4c..e4739b51597 100644 --- a/src/tools/icons/export.py +++ b/src/tools/icons/export.py @@ -74,7 +74,8 @@ def pngName(svgID, scale): def checkDirectories(svgIDs): invalidDirectories = [] for id in svgIDs: - if not os.path.isdir(os.path.join(qtcRoot(), id, '../')): + dirForId = os.path.abspath(os.path.join(qtcRoot(), id, os.pardir)) + if not os.path.isdir(dirForId): invalidDirectories.append(id) if invalidDirectories: