This commit is contained in:
Lukáš Trkan
2026-05-01 17:27:25 +02:00
parent f4f2352ec3
commit 8df624f568
4214 changed files with 3 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ from pathlib import Path
from functools import lru_cache
PORT = 8080
SCRIPT_DIR = Path(__file__).parent
SCRIPT_DIR = Path(__file__).parent.parent.joinpath("output").resolve()
TRANSPARENT_GIF = (
b'GIF89a\x01\x00\x01\x00\x80\x00\x00\xff\xff\xff\x00\x00\x00'
b'!\xf9\x04\x00\x00\x00\x00\x00,\x00\x00\x00\x00\x01\x00\x01'
@@ -132,7 +132,7 @@ class Handler(http.server.SimpleHTTPRequestHandler):
def main():
os.chdir(SCRIPT_DIR)
os.chdir(SCRIPT_DIR )
with socketserver.TCPServer(('', PORT), Handler) as httpd:
httpd.allow_reuse_address = True