diff options
Diffstat (limited to 'client.py')
-rw-r--r-- | client.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,6 @@ +import os import sys import xmlrpc.client -proxy = xmlrpc.client.ServerProxy("http://localhost:8000") +proxy = xmlrpc.client.ServerProxy(f"http://localhost:{os.environ.get("PORT", 8000)}") print("\n".join(proxy.search(sys.argv[1], sys.argv[2]))) |