Skip to content

Commit

Permalink
fix: unable to run subscript
Browse files Browse the repository at this point in the history
  • Loading branch information
Monomux committed Sep 5, 2023
1 parent 2342e1b commit 3e2cdb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion UIFunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,9 @@ def parsescript(cls, script_path, speed=100):
@classmethod
def run_sub_script(cls, extension, scriptpath: str, subextension_name: str = 'Extension',
runtimes: int = 1, speed: int = 100, thd=None, labeldict=None):
newevents, module_name = RunScriptClass.parsescript(scriptpath, speed=speed)
newevents, module_name, label_dict = RunScriptClass.parsescript(scriptpath, speed=speed)
if labeldict is None:
labeldict = label_dict
newextension = RunScriptClass.getextension(
module_name if module_name is not None else subextension_name,
runtimes=runtimes,
Expand Down

0 comments on commit 3e2cdb2

Please sign in to comment.