Patiencer / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Code explorer window should show modules imported using __import__ under imports #362

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. import a module using __import__()
2. Open Code Explorer window
3. expand imports

What is the expected output? What do you see instead?
modules that were imported using __import__ call should be listed under 
imports in Code Explorer window. 

What version of the product are you using? On what operating system?
1.9.9.7

Original issue reported on code.google.com by shrihar...@gmail.com on 14 Apr 2010 at 6:56

GoogleCodeExporter commented 9 years ago
This is in generally impossible.

For example (contrived of course)
a = "co"+"de"
__import__(a)

You have to run the script to know what it is actually importing.

Original comment by pyscripter on 31 Jul 2010 at 12:09