This commit is contained in:
songhao 2018-09-06 23:41:52 +08:00
parent e9543cc3f3
commit e4c476467f

View File

@ -7,15 +7,11 @@
void ScriptEngine::Init() void ScriptEngine::Init()
{ {
engine_ = new a8::PyEngine(); engine_ = new a8::PyEngine();
#if 1
engine_->work_path = "../res/pyscripts/";
#else
if (getenv("machine_type")) { if (getenv("machine_type")) {
engine_->work_path = "/var/data/conf_test/game1008/res/pyscripts/"; engine_->work_path = "/var/data/conf_test/game1008/res/pyscripts/";
} else { } else {
engine_->work_path = "../res/pyscripts/"; engine_->work_path = "../config/res/pyscripts/";
} }
#endif
engine_->Init(); engine_->Init();
if (!engine_->IsInitialized()) { if (!engine_->IsInitialized()) {
abort(); abort();