05 Mar'12

Python hostname

from socket import gethostname

print gethostname()

if 'prod' in gethostname:
    pass

Comments