diff --git a/paddlehub/server/server.py b/paddlehub/server/server.py index 64d8f61ca7177a810336f4b14cac67b662e15611..840549c24c62e3438b1fc37ffa4fe1c198f7a4dc 100644 --- a/paddlehub/server/server.py +++ b/paddlehub/server/server.py @@ -159,7 +159,7 @@ class CacheUpdater(threading.Thread): if version: payload['version'] = version api_url = uri_path(hubconf.server, 'search') - cache_path = os.path.join("~") + cache_path = os.path.join("~") hub_name = cache_config.hub_name if os.path.exists(cache_path): extra = {"command": command, "mtime": os.stat(cache_path).st_mtime, "hub_name": hub_name}