13 lines
231 B

import os
host_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), "host.file")
def load_host():
with open(host_file) as f:
return f.read().strip()
def url_base():
return "http://" + load_host()