CAM: fix default asset directory (#21775)

This commit is contained in:
Samuel
2025-06-05 15:20:19 +02:00
committed by GitHub
parent 5c219bea41
commit 39e79cee58
2 changed files with 3 additions and 3 deletions

View File

@@ -52,8 +52,8 @@ class TestPathPreferences(PathTestUtils.PathTestBase):
"""Default paths for tools are resolved correctly"""
self.assertEqual(
Path.Preferences.getDefaultAssetPath().parts[-2:],
("CAM", "Tools"),
Path.Preferences.getDefaultAssetPath().parts[-1],
"CamAssets",
str(Path.Preferences.getDefaultAssetPath()),
)
self.assertEqual(

View File

@@ -116,7 +116,7 @@ def getBuiltinToolBitPath() -> pathlib.Path:
def getDefaultAssetPath():
config = pathlib.Path(FreeCAD.ConfigGet("UserConfigPath"))
return config / "Mod" / "CAM" / "Tools"
return config / "CamAssets"
def getAssetPath() -> pathlib.Path: