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 16efed0 commit 39b7ca4Copy full SHA for 39b7ca4
src/sage/env.py
@@ -11,7 +11,8 @@
11
12
sage: env = {k:v for (k,v) in os.environ.items() if not k.startswith("SAGE_")}
13
sage: from subprocess import check_output
14
- sage: cmd = "from sage.all import SAGE_ROOT, SAGE_LOCAL; print((SAGE_ROOT, SAGE_LOCAL))"
+ sage: environment = "sage.all"
15
+ sage: cmd = f"from {environment} import SAGE_ROOT, SAGE_LOCAL; print((SAGE_ROOT, SAGE_LOCAL))"
16
sage: out = check_output([sys.executable, "-c", cmd], env=env).decode().strip() # long time
17
sage: out == repr((SAGE_ROOT, SAGE_LOCAL)) # long time
18
True
0 commit comments