From 53f098081123c959606ac73cc47274b82618bf4a Mon Sep 17 00:00:00 2001 From: Simon Lusenc Date: Fri, 3 Jun 2022 12:51:48 +0200 Subject: [PATCH] Release 2.3 Final --- addon/io_scs_tools/__init__.py | 2 +- addon/io_scs_tools/properties/addon_preferences.py | 2 +- addon/io_scs_tools/utils/path.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addon/io_scs_tools/__init__.py b/addon/io_scs_tools/__init__.py index d51d368..7cd374c 100644 --- a/addon/io_scs_tools/__init__.py +++ b/addon/io_scs_tools/__init__.py @@ -22,7 +22,7 @@ "name": "SCS Tools", "description": "Setup models, Import-Export SCS data format", "author": "Simon Lusenc (50keda), Milos Zajic (4museman)", - "version": (2, 3, "a8090b9a"), + "version": (2, 3, "76f322df"), "blender": (3, 0, 0), "location": "File > Import-Export", "wiki_url": "http://modding.scssoft.com/wiki/Documentation/Tools/SCS_Blender_Tools", diff --git a/addon/io_scs_tools/properties/addon_preferences.py b/addon/io_scs_tools/properties/addon_preferences.py index c7d83a9..003594f 100644 --- a/addon/io_scs_tools/properties/addon_preferences.py +++ b/addon/io_scs_tools/properties/addon_preferences.py @@ -331,7 +331,7 @@ def scs_project_path_update(self, context): # otherwise textures might not be properly loaded from parent and parent sibling directories # (we assign property directly to prevent recursive property update calls) if self.scs_project_path: - self["scs_project_path"] = _path_utils.readable_norm(self.scs_project_path) + self["scs_project_path"] = _path_utils.full_norm(self.scs_project_path) _config_container.update_scs_project_path(self.scs_project_path) return None diff --git a/addon/io_scs_tools/utils/path.py b/addon/io_scs_tools/utils/path.py index bd9ef92..1ae2ad7 100644 --- a/addon/io_scs_tools/utils/path.py +++ b/addon/io_scs_tools/utils/path.py @@ -869,7 +869,7 @@ def ensure_symlink(src, dest): os.remove(dest) # use os.remove instead os.unlink, as we can't remove mklink junction with os.unlink. if platform == "win32": - subprocess.check_call(["mklink", "/J", dest, src], shell=True) + subprocess.check_call(["mklink", "/J", os.path.normcase(dest), os.path.normcase(src)], shell=True) else: os.symlink(src, dest)