pyq
pyq copied to clipboard
Allow getting import path
A lot of time you want to know where is a specific definition so you can import it. Providing an option to print the import path would be fantastic:
pyq3 "#init_cmd" myvirtualenv -i # -i print import path
[foo.bar.init_cmd] ......./site-packages/foo/bar.py :111 def init_cmd(args)
Or even no option and make it the default behavior.
I'm not really convinced this should be integrated into the tool or a plugin for code editors.
The whole purpose of tools like yours is to follow the unix philosophy of "use the OS as your IDE". Even if you don't though, It is particularly useful when you ssh remote on a server and explore the code in the terminal while testing in the shell.