Is it possible to inject global variables and functions into modules? #3829
Unanswered
GasimGasimzada
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to be able to embed python modules into my application and provide some functions from my application to the module. For example,
I know that I can do something like this:
Which will allow me to import the functions from the module that I defined:
However, I want some of these functions and variables to be available within the global scope of the module without needing to define a separate module for them. Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions