CAM: Rename getBuiltinToolPath to getBuiltinAssetPath

This commit is contained in:
Samuel Abels
2025-05-26 17:34:49 +02:00
parent b0ad72943b
commit 2239603398
2 changed files with 6 additions and 6 deletions

View File

@@ -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:],

View File

@@ -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():