4.11
Last change
on this file since eaab26a was
f88fcf3,
checked in by Chris Johns <chrisj@…>, on 03/07/16 at 00:56:02
|
sb: Update code base to support Python3 and Python2.
Fix Windows support to allow MSYS2 Python to be used.
Updates #2619.
|
-
Property mode set to
100755
|
File size:
1.2 KB
|
Rev | Line | |
---|
[27e5a7e] | 1 | #! /usr/bin/env python |
---|
| 2 | # |
---|
| 3 | # RTEMS Tools Project (http://www.rtems.org/) |
---|
| 4 | # Copyright 2010-2013 Chris Johns (chrisj@rtems.org) |
---|
| 5 | # All rights reserved. |
---|
| 6 | # |
---|
| 7 | # This file is part of the RTEMS Tools package in 'rtems-tools'. |
---|
| 8 | # |
---|
| 9 | # Permission to use, copy, modify, and/or distribute this software for any |
---|
| 10 | # purpose with or without fee is hereby granted, provided that the above |
---|
| 11 | # copyright notice and this permission notice appear in all copies. |
---|
| 12 | # |
---|
| 13 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
---|
| 14 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
---|
| 15 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
---|
| 16 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
---|
| 17 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
---|
| 18 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
---|
| 19 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
---|
| 20 | |
---|
[f88fcf3] | 21 | from __future__ import print_function |
---|
| 22 | |
---|
[27e5a7e] | 23 | import sys, os |
---|
| 24 | base = os.path.dirname(sys.argv[0]) |
---|
| 25 | sys.path.insert(0, base + '/sb') |
---|
| 26 | try: |
---|
[cb12e48] | 27 | import options |
---|
| 28 | options.run(sys.argv) |
---|
[27e5a7e] | 29 | except ImportError: |
---|
[f88fcf3] | 30 | print("Incorrect Source Builder installation", file = sys.stderr) |
---|
[27e5a7e] | 31 | sys.exit(1) |
---|
Note: See
TracBrowser
for help on using the repository browser.