Download src/Mod/CAM/Path/Tool/__init__.py from AbdulElahGwaith/FreeCAD: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/AbdulElahGwaith/FreeCAD/resolve/main/src/Mod/CAM/Path/Tool/__init__.py
- Command line
-
hf download hf://AbdulElahGwaith/FreeCAD/src/Mod/CAM/Path/Tool/__init__.py
-
curl -L -o __init__.py https://huggingface.co/AbdulElahGwaith/FreeCAD/resolve/main/src/Mod/CAM/Path/Tool/__init__.py
1.37 kB
| # SPDX-License-Identifier: LGPL-2.1-or-later | |
| import sys | |
| from lazy_loader.lazy_loader import LazyLoader | |
| from . import toolbit | |
| from .assets import DummyAssetSerializer | |
| from .camassets import cam_assets | |
| from .library import Library | |
| from .library.serializers import FCTLSerializer | |
| from .toolbit import ToolBit | |
| from .toolbit.serializers import FCTBSerializer | |
| from .shape import ToolBitShape, ToolBitShapePngIcon, ToolBitShapeSvgIcon | |
| # Register asset classes and serializers. | |
| cam_assets.register_asset(Library, FCTLSerializer) | |
| cam_assets.register_asset(ToolBit, FCTBSerializer) | |
| cam_assets.register_asset(ToolBitShape, DummyAssetSerializer) | |
| cam_assets.register_asset(ToolBitShapePngIcon, DummyAssetSerializer) | |
| cam_assets.register_asset(ToolBitShapeSvgIcon, DummyAssetSerializer) | |
| # For backward compatibility with files saved before the toolbit rename | |
| # This makes the Path.Tool.toolbit.base module available as Path.Tool.Bit. | |
| # Since C++ does not use the standard Python import mechanism and instead | |
| # unpickles existing objects after looking them up in sys.modules, we | |
| # need to update sys.modules here. | |
| sys.modules[__name__ + ".Bit"] = toolbit.models.base | |
| sys.modules[__name__ + ".Gui.Bit"] = LazyLoader( | |
| "Path.Tool.toolbit.ui.view", globals(), "Path.Tool.toolbit.ui.view" | |
| ) | |
| # Define __all__ for explicit public interface | |
| __all__ = [ | |
| "ToolBit", | |
| "cam_assets", | |
| ] | |