From e4c476467f0029e6e0bca75152a7a38d377d65f2 Mon Sep 17 00:00:00 2001 From: songhao Date: Thu, 6 Sep 2018 23:41:52 +0800 Subject: [PATCH] 1 --- cpp/scriptengine.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cpp/scriptengine.cc b/cpp/scriptengine.cc index 4273853..4764426 100644 --- a/cpp/scriptengine.cc +++ b/cpp/scriptengine.cc @@ -7,15 +7,11 @@ 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/"; + engine_->work_path = "../config/res/pyscripts/"; } - #endif engine_->Init(); if (!engine_->IsInitialized()) { abort();