diff --git a/src/Mod/CAM/CAMTests/TestPathPreferences.py b/src/Mod/CAM/CAMTests/TestPathPreferences.py index e596ed90e6..6c57fb8b49 100644 --- a/src/Mod/CAM/CAMTests/TestPathPreferences.py +++ b/src/Mod/CAM/CAMTests/TestPathPreferences.py @@ -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( diff --git a/src/Mod/CAM/Path/Preferences.py b/src/Mod/CAM/Path/Preferences.py index fc5d186ad1..10d5204393 100644 --- a/src/Mod/CAM/Path/Preferences.py +++ b/src/Mod/CAM/Path/Preferences.py @@ -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: