Fix Py3 Incompatable str + bytes issue. (#456)
Fix Py3 Incompatable str + bytes issue.
This commit is contained in:
parent
9848996e07
commit
8ddabd405e
1 changed files with 4 additions and 4 deletions
|
@ -826,9 +826,9 @@ class Buildozer(object):
|
|||
#self.error('Unable to patch main_py to add applibs directory.')
|
||||
return
|
||||
|
||||
header = ('import sys, os; '
|
||||
'sys.path = [os.path.join(os.getcwd(),'
|
||||
'"..", "_applibs")] + sys.path\n')
|
||||
header = (b'import sys, os; '
|
||||
b'sys.path = [os.path.join(os.getcwd(),'
|
||||
b'"..", "_applibs")] + sys.path\n')
|
||||
with open(main_py, 'rb') as fd:
|
||||
data = fd.read()
|
||||
data = header + data
|
||||
|
|
Loading…
Reference in a new issue