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