Skip to content

Allow setting the libgmt path through an environment variable #172

Closed

Description

@leouieda

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

  1. added a commit that references this issue on Apr 24, 2018
    2840cfd
  2. added a commit that references this issue on Apr 24, 2018
    51c76d6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions