That's probably answered elsewhere, but I could not found it. Usually I also test code locally on different machines having assets in different paths. So far I've did this to switch case:
host = socket.gethostname()
if host == "hansel-livetask" :
path = "xyz"
elif host == "glenn-liveconsole" :
path = "xyz"
## and so on
This got longer and longer over time. Is there a future proof way to implement this?