-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide example of code #50
Comments
Good starting points would be https://github.com/thebjorn/pydeps/blob/master/tests/test_skinny_package.py and Line 136 in bef746a
|
still not very clear how should I call it from the code. As I understand inp is the target file and args is a dictionary with flags. I am tried to do this:
|
Ah, ok. Something like this should work:
the output should be an absolute'ish path. It's usually easier to let pydeps parse the args (note the format and the .split())
You can create your own arg-dict, but perhaps print the one returned from cli.parse_args to see what is expected...
The filename needs to be wrapped in a pydeps.target.Target class, and the args should be passed with the double-star ( You should get a graph if you put the above in a file named |
Thank you very much |
I need to do a call graph using pydeps, but on an executable. So, I think a way to do it is to add code that uses pydeps to make a call graph. The things is, I didn't find any example of how to use it programmatically. Could you, please, provide some. Sorry, if this is similar to other issues.
The text was updated successfully, but these errors were encountered: