Skip to content
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

sys.path seems not working at all #461

Open
tian-yan opened this issue Sep 4, 2021 · 1 comment
Open

sys.path seems not working at all #461

tian-yan opened this issue Sep 4, 2021 · 1 comment

Comments

@tian-yan
Copy link

tian-yan commented Sep 4, 2021

file is already in sys.path, however, when I set breakpoint on it, pdb++ still can not find the file.

(Pdb++) pp sys.path
['/usr/src/app',
 '/usr/local/bin',
 '/usr/local/lib/python3.7/site-packages/_pdbpp_path_hack',
 '/usr/local/lib/python37.zip',
 '/usr/local/lib/python3.7',
 '/usr/local/lib/python3.7/lib-dynload',
 '/usr/local/lib/python3.7/site-packages',
 '/root/Django/IoTSite/IoTSite/',
 '/root/Django/IoTSite/IoTSite/urls.py']
(Pdb++) b urls.py:39
*** 'urls.py' not found from sys.path
(Pdb++) 

@blueyed
Copy link
Collaborator

blueyed commented Sep 4, 2021

What Python version is this? (does it work with plain pdb there?)
Also try with pdb++ from Git master - IIRC there have been fixes in this regard there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants