Update common
This commit is contained in:
parent
c5d7d48492
commit
0f4dbd62f4
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 0414cc9bdbd14526e57e42fec9a6294f0a97b7ed
|
||||
Subproject commit 7b3e66514a9379805ae2ccd3bdffdae80bfdca68
|
10
crater.py
10
crater.py
|
@ -1,8 +1,6 @@
|
|||
import csv
|
||||
import os
|
||||
import shutil
|
||||
from functools import partial
|
||||
from http.server import HTTPServer, SimpleHTTPRequestHandler
|
||||
from pathlib import Path
|
||||
|
||||
from watchdog.observers import Observer
|
||||
|
@ -48,14 +46,6 @@ class Develop(FileSystemEventHandler):
|
|||
crater()
|
||||
|
||||
|
||||
# Функция для запуска веб-сервера
|
||||
def start_httpd(directory: Path, port: int = 8000):
|
||||
print(f"Listen on port {port}, serving from {directory}...")
|
||||
handler = partial(SimpleHTTPRequestHandler, directory=directory)
|
||||
httpd = HTTPServer(('localhost', port), handler)
|
||||
httpd.serve_forever()
|
||||
|
||||
|
||||
# Функция для запуска разработки
|
||||
def develop(prod):
|
||||
global running
|
||||
|
|
Loading…
Reference in New Issue