Changes by André Anjos :
--
title: site.main() does not work on Python 3.6 and superior with PYTHONSTARTUP
is set -> site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP
is set
___
Python tracker
<http://bugs.python.org/issu
Changes by André Anjos :
--
title: site.main() does not work on Python 3.6 and superior -> site.main() does
not work on Python 3.6 and superior with PYTHONSTARTUP is set
___
Python tracker
<http://bugs.python.org/issu
André Anjos added the comment:
After further investigation, the issue can only be reproduced iff the user sets
PYTHONSTARTUP which triggers "__main__" to appear in sys.modules and the
problem to occur.
--
___
Python tracker
<http://bu
André Anjos added the comment:
More information: to reproduce the problem, don't use Python's "-c"
command-line option. In this case "__main__" won't be inside sys.modules which
mitigates the issue.
--
___
Pyth
New submission from André Anjos:
Apparently, "import site; site.main()" does not seem to work anymore on Python
3.6 and superior.
The reason is a change on the behavior of "os.path.abspath(None)". Before
Python 3.6, it used to report an AttributeError which is pr
André Anjos added the comment:
A question concerning this patch: is this going to be applied only to 3.3 or to
2.7 as well? Python-2.7.x also does not have this functionality which would be
interesting to get.
--
nosy: +anjos
___
Python tracker