From e9543cc3f3cb742a5991b5a21b156efd7f09d8a8 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 6 Sep 2018 22:31:10 +0800 Subject: [PATCH] 1 --- cpp/scriptengine.cc | 4 ++++ 1 file changed, 4 insertions(+) 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();