Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/sage/misc/copying.py
4054 views
1
import os
2
import pager
3
4
5
class License:
6
def __call__(self):
7
pager.pager()(self.__str__())
8
9
def __repr__(self):
10
return "Type license() to see the full license text."
11
12
def __str__(self):
13
return open(os.environ['SAGE_ROOT'] + '/COPYING.txt').read()
14
15
16
license = License()
17
18
19