pyq icon indicating copy to clipboard operation
pyq copied to clipboard

Allow getting import path

Open sametmax opened this issue 9 years ago • 2 comments

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.

sametmax avatar Feb 11 '16 18:02 sametmax

I'm not really convinced this should be integrated into the tool or a plugin for code editors.

caioariede avatar Feb 12 '16 13:02 caioariede

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.

sametmax avatar Feb 15 '16 09:02 sametmax