diff --git a/UM/Resources.py b/UM/Resources.py index 76a477032..675217700 100644 --- a/UM/Resources.py +++ b/UM/Resources.py @@ -478,13 +478,15 @@ def _getCacheStorageRootPath(cls) -> Optional[str]: @classmethod def __initializeStoragePaths(cls) -> None: - Logger.log("d", "Initializing storage paths") - # use nested structure: //... if cls.ApplicationVersion in ["master", "main", "dev"] or cls.ApplicationVersion == "unknown": storage_dir_name = os.path.join(cls.ApplicationIdentifier, cls.ApplicationVersion) else: version = Version(cls.ApplicationVersion) - storage_dir_name = os.path.join(cls.ApplicationIdentifier, "%s.%s" % (version.getMajor(), version.getMinor())) + if version.hasPostFix() and version.getPostfixType() == "alpha": + storage_dir_name = os.path.join(cls.ApplicationIdentifier, + f"{version.getMajor()}.{version.getMinor()}-{version.getPostfixType()}") + else: + storage_dir_name = os.path.join(cls.ApplicationIdentifier, f"{version.getMajor()}.{version.getMinor()}") # config is saved in "/" cls.__config_storage_path = os.path.join(Resources._getConfigStorageRootPath(), storage_dir_name)