Getting pythonanywhere region within python

Hi - is there anyway to get the pythonanywhere region within a python script itself? I want to reply the same script to both a US and an EU account, but need to configure a few things differently depending on which region it's running in. Is this possible to auto detect? Thanks

There's not a really good way to auto-detect. Your best bet might be to put the specific stuff in a file and then just read that in in your script. Then you can have the same script that is just configured differently.