sb: Use shebang env python

Closes #4037
This commit is contained in:
Chris Johns
2020-08-25 21:21:50 +10:00
parent 40af487dfc
commit 650c6f9933
46 changed files with 469 additions and 713 deletions

View File

@@ -43,7 +43,7 @@ import re
import shlex
import sys
import path
from . import path
def default_prefix(common = True):
paths = []
@@ -214,7 +214,12 @@ class package(object):
prefix = default_prefix()
if prefix:
self._log('prefix: %s' % (prefix))
if type(prefix) is str or type(prefix) is unicode:
try:
if type(prefix) is unicode:
prefix = prefix.decode("utf-8", "ignore")
except:
pass
if type(prefix) is str:
prefix = str(prefix)
self.prefix = []
for p in prefix.split(os.pathsep):