mirror of
https://github.com/blw1138/Zordon.git
synced 2025-12-17 08:48:13 +00:00
Fix import issue
This commit is contained in:
0
lib/client/__init__.py
Normal file
0
lib/client/__init__.py
Normal 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
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user