Set 'copyright' and 'credits' in builtins
()
| 444 | |
| 445 | |
| 446 | def setcopyright(): |
| 447 | """Set 'copyright' and 'credits' in builtins""" |
| 448 | builtins.copyright = _sitebuiltins._Printer("copyright", sys.copyright) |
| 449 | builtins.credits = _sitebuiltins._Printer("credits", """\ |
| 450 | Thanks to CWI, CNRI, BeOpen, Zope Corporation, the Python Software |
| 451 | Foundation, and a cast of thousands for supporting Python |
| 452 | development. See www.python.org for more information.""") |
| 453 | files, dirs = [], [] |
| 454 | # Not all modules are required to have a __file__ attribute. See |
| 455 | # PEP 420 for more details. |
| 456 | here = getattr(sys, '_stdlib_dir', None) |
| 457 | if not here and hasattr(os, '__file__'): |
| 458 | here = os.path.dirname(os.__file__) |
| 459 | if here: |
| 460 | files.extend(["LICENSE.txt", "LICENSE"]) |
| 461 | dirs.extend([os.path.join(here, os.pardir), here, os.curdir]) |
| 462 | builtins.license = _sitebuiltins._Printer( |
| 463 | "license", |
| 464 | "See https://www.python.org/psf/license/", |
| 465 | files, dirs) |
| 466 | |
| 467 | |
| 468 | def sethelper(): |