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 5ca84df commit ffad8beCopy full SHA for ffad8be
pygmt/clib/loading.py
@@ -68,13 +68,14 @@ def clib_names(os_name):
68
"""
69
if os_name.startswith("linux"):
70
libnames = ["libgmt.so"]
71
- elif os_name == "darwin":
72
- # Darwin is macOS
+ elif os_name == "darwin": # Darwin is macOS
73
libnames = ["libgmt.dylib"]
74
elif os_name == "win32":
75
libnames = ["gmt.dll", "gmt_w64.dll", "gmt_w32.dll"]
+ elif os_name.startswith("freebsd"): # FreeBSD
76
+ libnames = ["libgmt.so"]
77
else:
- raise GMTOSError('Operating system "{}" not supported.'.format(sys.platform))
78
+ raise GMTOSError(f'Operating system "{sys.platform}" not supported.')
79
return libnames
80
81
0 commit comments