We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a59d99e + ba6cf1a commit e366423Copy full SHA for e366423
pythonforandroid/toolchain.py
@@ -210,6 +210,18 @@ def _get_option_tuples(self, option_string):
210
class ToolchainCL(object):
211
212
def __init__(self):
213
+
214
+ argv = sys.argv
215
+ # Buildozer used to pass these arguments in a now-invalid order
216
+ # If that happens, apply this fix
217
+ # This fix will be removed once a fixed buildozer is released
218
+ if (len(argv) > 2 and
219
+ argv[1].startswith('--color') and
220
+ argv[2].startswith('--storage-dir') and
221
+ argv[3] == 'apk'):
222
+ argv.append(argv.pop(1)) # the --color arg
223
+ argv.append(argv.pop(1)) # the --storage-dir arg
224
225
parser = NoAbbrevParser(
226
description=('A packaging tool for turning Python scripts and apps '
227
'into Android APKs'))
0 commit comments