commit | f92376f172915d97f1b20aa9b8631ea220e25b30 | [log] [tgz] |
---|---|---|
author | Ben Wagner <bungeman@google.com> | Wed Apr 17 21:54:28 2024 -0400 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Thu Apr 18 21:14:12 2024 +0000 |
tree | f8a7f29c18c746e887dfb6a1b32a7ab549c42b1a | |
parent | a9b6705071f55c3859268aa9554325b7e3ff4f2a [diff] |
Run gn_to_bp.py with python3 Python3 makes it quite difficult to have a single source file which can be a module in a package and also runnable as a script [0]. The gn_to_bp.py file is only a script and should not be considered in a gn module, so call it as a script instead of as a module. The gn_to_bp.py script can now take a path to the gn to use, so pass that explicitly rather than implicitly on the PATH. [0] https://stackoverflow.com/questions/16981921/relative-imports-in-python-3 Change-Id: I77da0c83033c2d402a348da5e1ee9741a33b4e6f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/842481 Reviewed-by: Eric Boren <borenet@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>