mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2025-11-12 16:01:54 +00:00
fix: lua base library location error.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user