File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -598,14 +598,16 @@ def _script():
598598 """
599599 args = sys .argv [1 :]
600600 if not args :
601+ user_base = getuserbase ()
602+ user_site = getusersitepackages ()
601603 print ("sys.path = [" )
602604 for dir in sys .path :
603605 print (" %r," % (dir ,))
604606 print ("]" )
605- print ("USER_BASE: %r (%s)" % (USER_BASE ,
606- "exists" if os .path .isdir (USER_BASE ) else "doesn't exist" ))
607- print ("USER_SITE: %r (%s)" % (USER_SITE ,
608- "exists" if os .path .isdir (USER_SITE ) else "doesn't exist" ))
607+ print ("USER_BASE: %r (%s)" % (user_base ,
608+ "exists" if os .path .isdir (user_base ) else "doesn't exist" ))
609+ print ("USER_SITE: %r (%s)" % (user_site ,
610+ "exists" if os .path .isdir (user_site ) else "doesn't exist" ))
609611 print ("ENABLE_USER_SITE: %r" % ENABLE_USER_SITE )
610612 sys .exit (0 )
611613
Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ Core and Builtins
4646Library
4747-------
4848
49+ - Issue #16804: Fix a bug in the 'site' module that caused running
50+ 'python -S -m site' to incorrectly throw an exception.
51+
4952- Issue #15480: Remove the deprecated and unused TYPE_INT64 code from marshal.
5053 Initial patch by Daniel Riti.
5154
You can’t perform that action at this time.
0 commit comments