Jun-13-2020, 12:21 PM
im debugging python source code using windows WSL some modules that i import i can see the source and some i can't , why i can't ?
here i try to find out where is the module installed in WSL
here i can see that i can access :
https://i.stack.imgur.com/E8mzR.png
i checked if the python that VSCODE is using the same as the one installed
https://i.stack.imgur.com/s0aBj.png
here i try to find out where is the module installed in WSL
[GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ansible >>> ansible.__file__ '/home/boo/projects/ansible/lib/ansible/__init__.py' >>> import site; site.getsitepackages() ['/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages', '/usr/lib/python3.8/dist-packages'] >>> cd KeyboardInterrupt >>>here i can see that i can't access :
here i can see that i can access :
https://i.stack.imgur.com/E8mzR.png
i checked if the python that VSCODE is using the same as the one installed
https://i.stack.imgur.com/s0aBj.png
tst@TEST:~/.local/lib/python3.8/site-packages/ansible/cli$ /bin/python3.8 Python 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ansible >>> ansible.__file__ '/home/tst/.local/lib/python3.8/site-packages/ansible/__init__.py'