-
my code source is: import os
....
os.abc(eee.name)
.... How to get the import python
from DataFlow::Node eee
where eee = API::moduleImport("os").getMember("abc").getACall().getParameter(0).getMember("name").getSelfParameter()
select eee but I seem to miss something please? |
Beta Was this translation helpful? Give feedback.
Answered by
tausbn
Aug 30, 2022
Replies: 1 comment 8 replies
-
If that is your entire source code, then one issue here is that |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
Sim4n6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If that is your entire source code, then one issue here is that
os
isn't defined anywhere. In order for something to be picked up as anAPI::moduleImport
, it must be imported. So, at the very least you needimport os
as well (assuming this is Python).