This commit is contained in:
aozhiwei 2018-09-06 22:31:10 +08:00
parent 8457c338fa
commit e9543cc3f3

View File

@ -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();