8000
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 69242c0 commit b2aa67dCopy full SHA for b2aa67d
Lib/site.py
@@ -418,8 +418,10 @@ def setcopyright():
418
files, dirs = [], []
419
# Not all modules are required to have a __file__ attribute. See
420
# PEP 420 for more details.
421
- if hasattr(os, '__file__'):
+ here = getattr(sys, '_stdlib_dir', None)
422
+ if not here and hasattr(os, '__file__'):
423
here = os.path.dirname(os.__file__)
424
+ if here:
425
files.extend(["LICENSE.txt", "LICENSE"])
426
dirs.extend([os.path.join(here, os.pardir), here, os.curdir])
427
builtins.license = _sitebuiltins._Printer(
0 commit comments