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 7753b9c commit 90ad065Copy full SHA for 90ad065
pygmt/clib/session.py
@@ -35,7 +35,6 @@
35
data_kind,
36
tempfile_from_geojson,
37
tempfile_from_image,
38
- unique_name,
39
)
40
41
FAMILIES = [
@@ -215,8 +214,8 @@ def __enter__(self):
215
214
_init_cli_session = False
216
# This is the first time a Session object is created.
217
if _STATE["session_name"] is None:
218
- # Set GMT_SESSION_NAME to a customized, unique value.
219
- _STATE["session_name"] = os.environ["GMT_SESSION_NAME"] = unique_name()
+ # Set GMT_SESSION_NAME to the current process id.
+ _STATE["session_name"] = os.environ["GMT_SESSION_NAME"] = str(os.getpid())
220
# Need to initialize the GMT CLI session.
221
_init_cli_session = True
222
self.create("pygmt-session")
0 commit comments