mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
11 lines
278 B
Python
11 lines
278 B
Python
import os
|
|
from http.server import HTTPServer, SimpleHTTPRequestHandler
|
|
|
|
web_dir = os.path.join(os.path.dirname(__file__), 'static')
|
|
os.chdir(web_dir)
|
|
handler = SimpleHTTPRequestHandler
|
|
|
|
# Start the server
|
|
server = HTTPServer(('localhost', 8000), handler)
|
|
server.serve_forever()
|