sb: Update code base to support Python3 and Python2.

Fix Windows support to allow MSYS2 Python to be used.

Updates #2619.
This commit is contained in:
Chris Johns
2016-03-07 11:56:02 +11:00
parent b537e55364
commit 3a972f6102
29 changed files with 412 additions and 314 deletions

View File

@@ -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 check
check.run()
except ImportError:
print >> sys.stderr, "Incorrect Set Bulder installation"
print("Incorrect Source Builder installation", file = sys.stderr)
sys.exit(1)