Skip to content

Commit b8058e9

Browse files
tornariadimpase
authored andcommitted
Revert "src/sage/interfaces/gap_workspace.py: Use hash of GAP_SO to disambiguate the workspace file, not SAGE_LOCAL"
This reverts commit a801e6d. See #33446.
1 parent 3a46e87 commit b8058e9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/sage/interfaces/gap_workspace.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import os
1717
import time
1818
import hashlib
19-
from sage.env import DOT_SAGE, GAP_SO
19+
from sage.env import DOT_SAGE, SAGE_LOCAL
2020

2121

2222
def gap_workspace_file(system="gap", name="workspace", dir=None):
@@ -59,10 +59,7 @@ def gap_workspace_file(system="gap", name="workspace", dir=None):
5959
if dir is None:
6060
dir = os.path.join(DOT_SAGE, 'gap')
6161

62-
if GAP_SO:
63-
h = hashlib.sha1(GAP_SO.encode('utf-8')).hexdigest()
64-
else:
65-
h = 'unknown'
62+
h = hashlib.sha1(SAGE_LOCAL.encode('utf-8')).hexdigest()
6663
return os.path.join(dir, '%s-%s-%s' % (system, name, h))
6764

6865

0 commit comments

Comments
 (0)