Skip to content

How to write a query to find the function call path in python #12064

Answered by BaiChienKao
BaiChienKao asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks to @atorralba for helping on the editing.
I found another related problem which is the CodeQL didn't extract the non built-in method from site-packages such as "nvflare" and "yaml".
I got the log as:
[build-stdout] Excluding the following directories from extraction, since they look like virtual environments: ['C:\Users\Administrator\PycharmProjects\VersionTestProject1\venv']
This indicated all the packages installed in "venv\Lib\site-packages" are not extracted.

It might be the reason I cannot find any non built-in functions and methods via the various value classes like BoundMethodValue, CallableValue, FunctionValue, ModuleValue and PythonFunctionValue.

Not sure how to make the "…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BaiChienKao
Comment options

Answer selected by BaiChienKao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant