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:
Ghostkeeper 2016-09-21 17:29:08 +02:00
parent 7d41c1dcb3
commit ebb9507083
No known key found for this signature in database
GPG key ID: 701948C5954A7385

View file

@ -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: