-
Notifications
You must be signed in to change notification settings - Fork 749
PythonEngine.Exec scope between classes #591
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
Comments
yagweb
added a commit
to yagweb/pythonnet
that referenced
this issue
Jan 10, 2018
yagweb
added a commit
to yagweb/pythonnet
that referenced
this issue
Jan 10, 2018
It's a bug of the Exec method. I just submit a PR to fix it. Another method is using the PyScope class,
|
Thanks. I also had some success using |
@evandavey @yagweb thanks for this bug report and pull request! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Details
I am embedding Python using PythonEngine.Exec to run code read from a file which seems to be losing global scope.
The python code contains two classes:
Error:
The text was updated successfully, but these errors were encountered: