Skip to content

Access current function from plugin #1737

Answered by plafosse
deqline asked this question in General
Discussion options

You must be logged in to vote

current_function is part of the python console, and thus can't be accessed in a plugin. If you need the current_function you can register a plugin using register_for_function which will provide the Function object you want. Either that or you can use the Snippits plugin and create a snippit which does allow access to current_function

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by plafosse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants