Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop doing a "verify_sharedir_version" #60

Closed
wants to merge 1 commit into from
Closed

Conversation

joa-quim
Copy link
Member

@joa-quim joa-quim commented Sep 8, 2018

Since we hard-coded most of the postscript stuff we don't need this check anymore, which can even be harmfull on Win if no /DNO_SHAREDIR_VERIFY is used and only the gmt dll is updated.

@PaulWessel
Copy link
Member

The test is now failing; perhaps you can clean that part up first.

@joa-quim
Copy link
Member Author

joa-quim commented Sep 8, 2018

Damn it. I did this PR directly from the git page and ofc didn't bother to check it builds. Seems, that I have to start over ... but latter.

@joa-quim joa-quim closed this Sep 9, 2018
@joa-quim joa-quim deleted the joa-quim-patch-2 branch September 9, 2018 01:13
obaney pushed a commit to obaney/gmt that referenced this pull request Aug 18, 2021
Fixes GenericMappingTools#49 

Uses `GMT_Handle_Messages` to send error messages to a log file.
In `call_module` retrieve those messages and use them in the 
exceptions for a more informative message (instead of just a status code).

Implements a context manager method `LibGMT.log_to_file` that 
creates a temp file and sets up logging. Logs only a single API call so it
must be used inside each method that wants to log. Actually only useful for
`call_module`. Most other API calls don't produce error messages.

Example:

    with self.log_to_file() as logfile:
        status = self._c_call_module(...)
        with open(logfile) as f:
            log = f.read()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants