database schema adjustments to server/realm/scene
This commit is contained in:
parent
a102c96bb4
commit
09590edd95
79 changed files with 7100 additions and 100 deletions
28
stock/run.py
Executable file
28
stock/run.py
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/env python3
|
||||
"""Simple HTTP server for the stock avatar compositor."""
|
||||
|
||||
import http.server
|
||||
import socketserver
|
||||
import webbrowser
|
||||
from pathlib import Path
|
||||
|
||||
PORT = 8080
|
||||
DIRECTORY = Path(__file__).parent
|
||||
|
||||
|
||||
class Handler(http.server.SimpleHTTPRequestHandler):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, directory=str(DIRECTORY), **kwargs)
|
||||
|
||||
|
||||
def main():
|
||||
with socketserver.TCPServer(("", PORT), Handler) as httpd:
|
||||
url = f"http://localhost:{PORT}"
|
||||
print(f"Serving at {url}")
|
||||
print("Press Ctrl+C to stop")
|
||||
webbrowser.open(url)
|
||||
httpd.serve_forever()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue