fix: lua base library location error.

This commit is contained in:
sususweet
2025-10-31 23:21:39 +08:00
parent e4b939780f
commit 39cc28b4dd
2 changed files with 7 additions and 4 deletions

View File

@@ -19,12 +19,12 @@ class LuaRuntime:
self._runtimes.execute('require "cjson"')
except Exception as e:
MideaLogger.warning(f"Failed to load cjson: {e}")
try:
self._runtimes.execute('require "bit"')
except Exception as e:
MideaLogger.warning(f"Failed to load bit: {e}")
# 加载设备特定的Lua文件
string = f'dofile("{file}")'
self._runtimes.execute(string)