|
|
HOSTS_HOME = os.environ.get('HOME')+'/hosts' | HOSTS_HOME = os.environ.get('HOME')+'/hosts' |
if HOSTS_ENV: | if HOSTS_ENV: |
print HOSTS_ENV | print HOSTS_ENV |
elif os.path.exists(HOSTS_HOME) and os.path.getsize(HOSTS_HOME) != 0: |
elif os.path.isfile(HOSTS_HOME) and os.path.getsize(HOSTS_HOME) != 0: |
print HOSTS_HOME | print HOSTS_HOME |
elif os.path.exists('/etc/distcc/hosts'): | elif os.path.exists('/etc/distcc/hosts'): |
print rstrip(open('/etc/distcc/hosts', 'r').read()) | print rstrip(open('/etc/distcc/hosts', 'r').read()) |