![]() ![]() This is not the case when the module is loaded from a python source file (py file). Out: '/Users/rclary/Applications/spyder-dev/Spyder.app/Contents/Resources/lib/python3.9/jedi/api/environment.py'Ībove you can see that importing the module from the zip folder inside the application resource path (a pyc file) results in inspect using paths relative to the current working directory rather than relative to the module path. Out: '/Users/rclary/Applications/spyder-dev/Spyder.app/Contents/Resources/lib/python3.9/jedi/_init_.py' In : inspect. _file_ Out: '/Users/rclary/Applications/spyder-dev/Spyder.app/Contents/Resources/lib/python3.9/jedi/_init_.py' In : inspect. ![]() _file_ Out: '/Users/rclary/Applications/spyder-dev/Spyder.app/Contents/Resources/lib/python39.zip/inspect.pyc' In : import jedi In : jedi. Out: '/Users/rclary/inspect.py' In : inspect. Out: '/Users/rclary/Applications/spyder-dev/Spyder.app/Contents/Resources/lib/python39.zip/inspect.py' In : inspect.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |