emolch/gmtpy — pull request #1 by bluesquall (2012-09-05 18:14:34+00:00)
Title: Default ubuntu path

I made minimal changes in gmtpy.py so that it checks the default install location for the .deb package from the Ubuntu (11.04) repositories, _without_ requiring $GMTHOME to be set, or the GMT bin directory on the path.

The Ubuntu package follows a convention where all of the GMT binaries are no on the path, but called with the GMT prefix instead. (e.g., $ GMT gmtdefaults instead of $ gmtdefaults).

I also changed some of your exceptions in detect_gmt_installation

There may be a more universal way to do this, but I went for the quick & clean solution.

Thanks for providing a nice clean python interface for GMT.