diff --git a/core/src/net/sf/openrocket/startup/Startup2.java b/core/src/net/sf/openrocket/startup/Startup2.java index b2e13195e..3ab137a90 100644 --- a/core/src/net/sf/openrocket/startup/Startup2.java +++ b/core/src/net/sf/openrocket/startup/Startup2.java @@ -113,10 +113,8 @@ public class Startup2 { // Load motors etc. log.info("Loading databases"); - ConcurrentLoadingThrustCurveMotorSetDatabase motorLoader = new ConcurrentLoadingThrustCurveMotorSetDatabase(THRUSTCURVE_DIRECTORY); - motorLoader.startLoading(); - Application.setMotorSetDatabase(motorLoader); - + loadMotor(); + Databases.fakeMethod(); try { @@ -137,6 +135,14 @@ public class Startup2 { } + /** + * this method is useful for the python bindings. + */ + public static void loadMotor() { + ConcurrentLoadingThrustCurveMotorSetDatabase motorLoader = new ConcurrentLoadingThrustCurveMotorSetDatabase(THRUSTCURVE_DIRECTORY); + motorLoader.startLoading(); + Application.setMotorSetDatabase(motorLoader); + } /** * Check that the JRE is not running headless.