New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent sys.path between python and pdb #86550
Comments
The first entry in sys.path is different between $ cat > print-path.py
import sys
from pprint import pprint pprint(sys.path)
$ python3 print-path.py
['/home/user',
'/usr/lib64/python38.zip',
'/usr/lib64/python3.8',
'/usr/lib64/python3.8/lib-dynload',
'/usr/lib64/python3.8/site-packages',
'/usr/lib/python3.8/site-packages']
$ python3 -m pdb print-path.py
> /home/user/print-path.py(1)<module>()
-> import sys
(Pdb) c
['',
'/usr/lib64/python38.zip',
'/usr/lib64/python3.8',
'/usr/lib64/python3.8/lib-dynload',
'/usr/lib64/python3.8/site-packages',
'/usr/lib/python3.8/site-packages'] |
I'll look into fixing this after I fix bpo-42383 |
After reading Lib/pdb.py:main I believe I can fix both by changing a single line. |
Hey Andrey, this has been merged into 3.10, but the backports didn't work because the structure of the tests has changed (os_helper doesn't exist). Do you want to fix these? |
I'll give it a try |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: