mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-04-29 03:00:45 -04: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()
|