Skip to content

Trying to mimic exec(...) #1916

Answered by kngwyu
dbr asked this question in Questions
Discussion options

You must be logged in to vote

Yeah, you need to import __main__ to do so.
Maybe it's beneficial to note that in the FAQ section of the guide.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by davidhewitt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
Converted from issue

This discussion was converted from issue #1433 on October 13, 2021 20:49.