Fix import issue

This commit is contained in:
Brett Williams
2023-06-01 20:31:23 -05:00
parent 1dca7d8029
commit 23abbd836c
3 changed files with 8 additions and 8 deletions

0
lib/client/__init__.py Normal file
View File

View File

@@ -11,7 +11,8 @@ from tkinter.ttk import Frame, Label, Entry, Combobox
import psutil
import requests
import sys
sys.path.append('../../')
from lib.render_workers.blender_worker import Blender
from server_proxy import RenderServerProxy

View File

@@ -62,10 +62,9 @@ class ZeroconfServer():
# Example usage:
if __name__ == "__main__":
server = ZeroconfServer("_zordon._tcp.local.", "deathstar.local", 8080)
server.start()
# Run your Flask application or perform other tasks
# ...
input("Server running - Press enter to end")
server.stop()
server = ZeroconfServer("_zordon._tcp.local.", "foobar.local", 8080)
try:
server.start()
input("Server running - Press enter to end")
finally:
server.stop()