Update common

This commit is contained in:
Digital Studium 2023-07-23 11:44:35 +03:00
parent c5d7d48492
commit 0f4dbd62f4
2 changed files with 1 additions and 11 deletions

2
common

@ -1 +1 @@
Subproject commit 0414cc9bdbd14526e57e42fec9a6294f0a97b7ed Subproject commit 7b3e66514a9379805ae2ccd3bdffdae80bfdca68

View File

@ -1,8 +1,6 @@
import csv import csv
import os import os
import shutil import shutil
from functools import partial
from http.server import HTTPServer, SimpleHTTPRequestHandler
from pathlib import Path from pathlib import Path
from watchdog.observers import Observer from watchdog.observers import Observer
@ -48,14 +46,6 @@ class Develop(FileSystemEventHandler):
crater() 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): def develop(prod):
global running global running