You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow setting the libgmt path through an environment variable #172
Right now, there is no way for the user to set the path to the correct libgmt. Setting LD_LIBRARY_PATH is not guaranteed to work and generally not recommended.
Since gmt.begin is called upon import, specifying the path cannot be done as a function or global variable. Another option is to look for an environment variable (maybe GMT_LIBRARY_PATH). This value could be read at import time and used to set a package wide variable. LibGMT would then read from this variable.
A config file could also be used but I think this is the simplest option for now. We'll think about it if we have more variable to configure.
Activity
Set libgmt path with GMT_LIBRARY_PATH from environ
Set libgmt path with GMT_LIBRARY_PATH from environ (#177)