diff --git a/cpp/scriptengine.cc b/cpp/scriptengine.cc index c0fa1e8..4273853 100644 --- a/cpp/scriptengine.cc +++ b/cpp/scriptengine.cc @@ -7,11 +7,15 @@ void ScriptEngine::Init() { engine_ = new a8::PyEngine(); + #if 1 + engine_->work_path = "../res/pyscripts/"; + #else if (getenv("machine_type")) { engine_->work_path = "/var/data/conf_test/game1008/res/pyscripts/"; } else { engine_->work_path = "../res/pyscripts/"; } + #endif engine_->Init(); if (!engine_->IsInitialized()) { abort();