-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
SCons: Fix Python 2 support after #43057 #45897
Conversation
That's not a very pretty way to parse a string from a python file though, there should definitely be cleaner and more reliable ways to do this without using `exec()`.
That's what SCons does while parsing Python scripts. It's not reliable to There might be better ways to do this, not denying that. 🙂 |
2da2afa
to
88e5017
Compare
Found a slightly nicer way in https://stackoverflow.com/a/56800610. |
88e5017
to
2698636
Compare
I haven't used |
Ah indeed, I had tested it with Python 3 but without actually making use of that code. So back to:
which seems to work. That being said, with or without that fix, I'm getting:
Same error on the |
2698636
to
2da2afa
Compare
Superseded by #45901. |
That's not a very pretty way to parse a string from a python file
though, there should definitely be cleaner and more reliable ways
to do this without using
exec()
.