diff options
author | Chris Johns <chrisj@rtems.org> | 2016-03-07 11:56:02 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-03-07 13:16:17 +1100 |
commit | f88fcf3ae04f366d1f1faaa4f567c43627d063d2 (patch) | |
tree | 85625ff5ad44270dedf56b9909b51ef2958aff2d /source-builder/sb-set-builder | |
parent | sb: Remove http query flags from the file name if present. (diff) | |
download | rtems-source-builder-f88fcf3ae04f366d1f1faaa4f567c43627d063d2.tar.bz2 |
sb: Update code base to support Python3 and Python2.
Fix Windows support to allow MSYS2 Python to be used.
Updates #2619.
Diffstat (limited to 'source-builder/sb-set-builder')
-rwxr-xr-x | source-builder/sb-set-builder | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source-builder/sb-set-builder b/source-builder/sb-set-builder index 7fb4f3a..52e122b 100755 --- a/source-builder/sb-set-builder +++ b/source-builder/sb-set-builder @@ -18,12 +18,17 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +from __future__ import print_function + import sys, os base = os.path.dirname(sys.argv[0]) sys.path.insert(0, base + '/sb') + +import setbuilder + try: import setbuilder setbuilder.run() except ImportError: - print >> sys.stderr, "Incorrect Set Bulder installation" + print("Incorrect Source Builder installation", file = sys.stderr) sys.exit(1) |