Add video abstraction class

This commit is contained in:
2024-02-17 20:06:37 -06:00
parent 21b1bf7992
commit db7c8c4577
7 changed files with 259 additions and 23 deletions

View File

@@ -62,7 +62,7 @@ def fprint(msg, settings = None, sendqueue = None):
print(logMsg)
if (sendqueue is not None):
sendqueue.put("{ \"type\": \"log\", \"call\":\"send\", \"data\": \"" + logMsg + "\" }")
sendqueue.put(("*", "{ \"type\": \"log\", \"call\":\"send\", \"data\": \"" + logMsg + "\" }"))
if (settings is not None):
tmpList = settings["logMsg"]
tmpList.append(logMsg)
@@ -111,9 +111,9 @@ def run_cmd(cmd):
return completed
def setup_child(sets=None):
#if not getattr(sys, "frozen", False):
# sys.stdout = Logger(filename=find_data_file("output.log"))
# sys.stderr = Logger(filename=find_data_file("output.log"))
if not getattr(sys, "frozen", False):
sys.stdout = Logger(filename=find_data_file("output.log"))
sys.stderr = Logger(filename=find_data_file("output.log"))
if sets is not None:
settings = sets