App: Add Python interface to ApplicationDirectories
The Python version of this class is entirely static: no instance is required. Internally it accesses th pre-constructed instance of the C++ ApplicationDirectories class that is instantiated at program startup by the Application class.
This commit is contained in:
@@ -103,6 +103,7 @@
|
||||
#include "Annotation.h"
|
||||
#include "Application.h"
|
||||
#include "ApplicationDirectories.h"
|
||||
#include "ApplicationDirectoriesPy.h"
|
||||
#include "CleanupProcess.h"
|
||||
#include "ComplexGeoData.h"
|
||||
#include "Services.h"
|
||||
@@ -333,6 +334,7 @@ void Application::setupPythonTypes()
|
||||
Base::InterpreterSingleton::addType(&Base::TypePy ::Type,pBaseModule,"TypeId");
|
||||
Base::InterpreterSingleton::addType(&Base::PrecisionPy ::Type,pBaseModule,"Precision");
|
||||
|
||||
Base::InterpreterSingleton::addType(&ApplicationDirectoriesPy::Type, pAppModule, "ApplicationDirectories");
|
||||
Base::InterpreterSingleton::addType(&MaterialPy::Type, pAppModule, "Material");
|
||||
Base::InterpreterSingleton::addType(&MetadataPy::Type, pAppModule, "Metadata");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user