If $HOME/hosts is a directory, distcc-config --get-hosts prints the directory's name instead of the host list. The script uses the function os.path.exists() to check whether the file $HOME/hosts exists. Using os.path.isfile() instead fixes the issue.
Created attachment 35654 [details, diff] patch that solves the problem
Markus, can you take care of this?
fixed.