update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user