CAM: fix default asset directory (#21775)
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user