mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 04:59:00 +08:00
Add extension to new file
The upgrade plug-in can do this because he know that he's upgrading to version 2.3. Contributes to issue CURA-844.
This commit is contained in:
parent
7d41c1dcb3
commit
ebb9507083
@ -110,7 +110,7 @@ class MachineInstance:
|
|||||||
|
|
||||||
version_upgrade_manager = UM.VersionUpgradeManager.VersionUpgradeManager.getInstance()
|
version_upgrade_manager = UM.VersionUpgradeManager.VersionUpgradeManager.getInstance()
|
||||||
user_storage = os.path.join(UM.Resources.getDataStoragePath(), next(iter(version_upgrade_manager.getStoragePaths("user"))))
|
user_storage = os.path.join(UM.Resources.getDataStoragePath(), next(iter(version_upgrade_manager.getStoragePaths("user"))))
|
||||||
user_profile_file = os.path.join(user_storage, self._name + "_current_settings")
|
user_profile_file = os.path.join(user_storage, self._name + "_current_settings.inst.cfg")
|
||||||
if not os.path.exists(user_storage):
|
if not os.path.exists(user_storage):
|
||||||
os.makedirs(user_storage)
|
os.makedirs(user_storage)
|
||||||
with open(user_profile_file, "w") as file_handle:
|
with open(user_profile_file, "w") as file_handle:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user