diff --git a/src/Mod/CAM/CAMTests/TestPathPreferences.py b/src/Mod/CAM/CAMTests/TestPathPreferences.py index 93b1028b0a..e596ed90e6 100644 --- a/src/Mod/CAM/CAMTests/TestPathPreferences.py +++ b/src/Mod/CAM/CAMTests/TestPathPreferences.py @@ -57,9 +57,9 @@ class TestPathPreferences(PathTestUtils.PathTestBase): str(Path.Preferences.getDefaultAssetPath()), ) self.assertEqual( - Path.Preferences.getBuiltinToolPath().parts[-2:], + Path.Preferences.getBuiltinAssetPath().parts[-2:], ("CAM", "Tools"), - str(Path.Preferences.getBuiltinToolPath()), + str(Path.Preferences.getBuiltinAssetPath()), ) self.assertEqual( Path.Preferences.getBuiltinShapePath().parts[-3:], diff --git a/src/Mod/CAM/Path/Preferences.py b/src/Mod/CAM/Path/Preferences.py index 326c9078e3..fc5d186ad1 100644 --- a/src/Mod/CAM/Path/Preferences.py +++ b/src/Mod/CAM/Path/Preferences.py @@ -97,21 +97,21 @@ def pathPostSourcePath(): return os.path.join(FreeCAD.getHomePath(), "Mod/CAM/Path/Post/") -def getBuiltinToolPath() -> pathlib.Path: +def getBuiltinAssetPath() -> pathlib.Path: home = pathlib.Path(FreeCAD.getHomePath()) return home / "Mod" / "CAM" / "Tools" def getBuiltinLibraryPath() -> pathlib.Path: - return getBuiltinToolPath() / "Library" + return getBuiltinAssetPath() / "Library" def getBuiltinShapePath() -> pathlib.Path: - return getBuiltinToolPath() / "Shape" + return getBuiltinAssetPath() / "Shape" def getBuiltinToolBitPath() -> pathlib.Path: - return getBuiltinToolPath() / "Bit" + return getBuiltinAssetPath() / "Bit" def getDefaultAssetPath():