SimpleHTTPRequestHandlerでdocument rootの変更
どこを調べてもos.chdir()する方法しか見つからなかったのでソースを調べた。directoryに指定できる。
class MyServerHandler(http.server.SimpleHTTPRequestHandler): def __init__(self, *args, **kwargs ): super().__init__( *args, directory='../', **kwargs ) def do_GET(self): :