[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2025-09-22 13:50:52 +00:00
parent fee9d78fad
commit 5aadc9cd6c
8 changed files with 86 additions and 76 deletions

View File

@@ -140,7 +140,9 @@ def getAssetPath() -> pathlib.Path:
# Migrate: Set the legacy path as the new CamAssets path
setAssetPath(legacy_path_obj)
# Return the most recent version of the legacy path
most_recent_legacy = FreeCAD.ApplicationDirectories.mostRecentConfigFromBase(str(legacy_path_obj))
most_recent_legacy = FreeCAD.ApplicationDirectories.mostRecentConfigFromBase(
str(legacy_path_obj)
)
return pathlib.Path(most_recent_legacy)
# Fallback to default if no legacy path found