Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 93a9fcf

Browse files
author
Matthias Koeppe
committed
src/bin/sage-venv-config: Import VERSION from sage.version
1 parent c4a802d commit 93a9fcf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/bin/sage-venv-config

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@
22
# this interpreter will be replaced by the interpreter in the venv
33
# during installation.
44

5+
VERSION = 'unknown'
6+
57
try:
68
from sage_conf import *
79
except ImportError:
810
pass
911

1012
from sys import prefix as SAGE_VENV
1113

14+
try:
15+
from sage.version import version as VERSION
16+
except ImportError:
17+
pass
18+
1219
def _main():
1320
from argparse import ArgumentParser
1421
from sys import exit, stdout

0 commit comments

Comments
 (0)