diff --git a/weditor/web/handlers/proxy.py b/weditor/web/handlers/proxy.py index b290de4..6e020f2 100644 --- a/weditor/web/handlers/proxy.py +++ b/weditor/web/handlers/proxy.py @@ -15,8 +15,8 @@ class StaticProxyHandler(tornado.web.StaticFileHandler): http_client = tornado.httpclient.AsyncHTTPClient() - def initialize(self, path: str ="/", default_filename: str = None) -> None: - self.root = path + def initialize(self, path: str = None, default_filename: str = None) -> None: + self.root = path if path else os.path.expanduser("~") self.default_filename = default_filename async def download_file(self, path: str) -> str: