Repository navigation
Add bitflag to allow resetting GMT->init.runtime_bindir - #9018
Merged
Merged
Conversation
The issue is that when called from externals GMT->init.runtime_bindir is set to the binary of the external caller. For example from Julia GMT->init.runtime_bindir is set to .../Julia/bin and this is not good for example to fibf the Ghostscript location on Windows. This PR adds a new GMT_SESSION_BIN2LIBDIR bit flag that can be used at the time of GMT_Create_Session() call and will set GMT->init.runtime_bindir equal to GMT->init.runtime_libdir. This latter does not seem to be affected by the guessing machinery in gmt_begin and holds the right address on Windows. Unix systems may still be affected by the issue this PR tries to address. In all cases, this should be a harmless change when the GMT_SESSION_BIN2LIBDIR bit flag is not used.
Member
Author
|
@seisman this may have influence in PyGMT as well. Please test it. |
Member
|
Currently, PyGMT doesn't rely on the bin directory, so it's not affected. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The issue is that when called from externals
GMT->init.runtime_bindiris set to the binary of the external caller. For example from JuliaGMT->init.runtime_bindiris set to.../Julia/binand this is not good for example to find the Ghostscript location on Windows.This PR adds a new
GMT_SESSION_BIN2LIBDIRbit flag that can be used at the time ofGMT_Create_Session()call and will setGMT->init.runtime_bindirequal toGMT->init.runtime_libdir. This latter does not seem to be affected by the guessing machinery ingmt_beginand holds the right address on Windows. Unix systems may still be affected by the issue this PR tries to address. In all cases, this should be a harmless change when theGMT_SESSION_BIN2LIBDIRbit flag is not used.