CAM: Rename getBuiltinToolPath to getBuiltinAssetPath
This commit is contained in:
@@ -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:],
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user