mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Only look for user package management path in storage dirs
If we happen to find it in the installation (or some other place we can't write to) then it's going to crash. So don't do that. Contributes to issue CURA-5364.
This commit is contained in:
parent
ed6b63b41b
commit
eab150d7ee
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ class CuraPackageManager(QObject):
|
|||
candidate_bundled_path = os.path.join(search_path, "bundled_packages.json")
|
||||
if os.path.exists(candidate_bundled_path):
|
||||
self._bundled_package_management_file_path = candidate_bundled_path
|
||||
for search_path in (Resources.getDataStoragePath(), Resources.getConfigStoragePath()):
|
||||
candidate_user_path = os.path.join(search_path, "packages.json")
|
||||
if os.path.exists(candidate_user_path):
|
||||
self._user_package_management_file_path = candidate_user_path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue