1
This commit is contained in:
parent
e9543cc3f3
commit
e4c476467f
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user