File tree Expand file tree Collapse file tree
addons/source-python/packages/source-python/engines Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # ../engines/server.py
2+
3+ """Provides access to the Server tools interfaces."""
4+
5+ # =============================================================================
6+ # >> FORWARD IMPORTS
7+ # =============================================================================
8+ # Source.Python Imports
9+ # Engines
10+ from _engines ._tools import engine_tool
11+
12+
13+ # =============================================================================
14+ # >> ALL DECLARATION
15+ # =============================================================================
16+ __all__ = ('engine_tool' ,
17+ )
Original file line number Diff line number Diff line change @@ -48,17 +48,17 @@ extern IEngineTool* enginetool;
4848void export_engine_tool (scope);
4949
5050// ---------------------------------------------------------------------------------
51- // Declare the _tool module
51+ // Declare the _tools module
5252// ---------------------------------------------------------------------------------
53- DECLARE_SP_SUBMODULE (_engines, _tool )
53+ DECLARE_SP_SUBMODULE (_engines, _tools )
5454{
55- export_engine_tool (_tool );
55+ export_engine_tool (_tools );
5656}
5757
5858// ---------------------------------------------------------------------------------
5959// Exports IEngineTool
6060// ---------------------------------------------------------------------------------
61- void export_engine_tool (scope _tool )
61+ void export_engine_tool (scope _tools )
6262{
6363 class_<IEngineTool, boost::noncopyable>(" _EngineTool" , no_init)
6464 .def (" get_sound_duration_by_path" ,
@@ -105,6 +105,6 @@ void export_engine_tool(scope _tool)
105105 ADD_MEM_TOOLS (IEngineTool)
106106 ;
107107
108- _tool .attr (" engine_tool" ) = object (ptr (enginetool));
108+ _tools .attr (" engine_tool" ) = object (ptr (enginetool));
109109}
110110
You can’t perform that action at this time.
0 commit comments