1
This commit is contained in:
parent
8457c338fa
commit
e9543cc3f3
@ -7,11 +7,15 @@
|
|||||||
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 = "../res/pyscripts/";
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
engine_->Init();
|
engine_->Init();
|
||||||
if (!engine_->IsInitialized()) {
|
if (!engine_->IsInitialized()) {
|
||||||
abort();
|
abort();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user