We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77db4c1 commit 6e4866cCopy full SHA for 6e4866c
pygmt/__init__.py
@@ -134,10 +134,10 @@ def _get_ghostscript_version():
134
135
for gs_cmd in cmds:
136
try:
137
- version = subprocess.check_output(
+ gs_version = subprocess.check_output(
138
[gs_cmd, "--version"], universal_newlines=True
139
).strip()
140
- return version
+ return gs_version
141
except FileNotFoundError:
142
continue
143
return None
@@ -147,10 +147,10 @@ def _get_gmt_version():
147
Get GMT version.
148
"""
149
150
+ gmt_version = subprocess.check_output(
151
["gmt", "--version"], universal_newlines=True
152
153
+ return gmt_version
154
155
156
0 commit comments