summaryrefslogtreecommitdiffstats
path: root/source-builder/sb-bootstrap
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-03-07 11:56:02 +1100
committerChris Johns <chrisj@rtems.org>2016-03-07 13:16:17 +1100
commitf88fcf3ae04f366d1f1faaa4f567c43627d063d2 (patch)
tree85625ff5ad44270dedf56b9909b51ef2958aff2d /source-builder/sb-bootstrap
parentsb: Remove http query flags from the file name if present. (diff)
downloadrtems-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-bootstrap')
-rwxr-xr-xsource-builder/sb-bootstrap4
1 files changed, 3 insertions, 1 deletions
diff --git a/source-builder/sb-bootstrap b/source-builder/sb-bootstrap
index 0befd8d..a1ee9a7 100755
--- a/source-builder/sb-bootstrap
+++ b/source-builder/sb-bootstrap
@@ -18,6 +18,8 @@
# 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')
@@ -25,5 +27,5 @@ try:
import bootstrap
bootstrap.run(sys.argv)
except ImportError:
- print >> sys.stderr, "Incorrect Source Builder installation"
+ print("Incorrect Source Builder installation", file = sys.stderr)
sys.exit(1)