Perf: Use of sort and sorted functions optimized #748

Merged
g1tman merged 8 commits from master into master 2019-11-25 11:28:17 +01:00
Showing only changes of commit 631ca5e847 - Show all commits

View file

@ -123,7 +123,7 @@ class BdistAPK(Command):
exit(1)
if len(main_py_dirs) > 1:
print('WARNING: Multiple main.py dirs found, using the shortest path')
main_py_dirs = sorted(main_py_dirs, key=lambda j: len(split(j)))
main_py_dirs.sort(key=lambda j: len(split(j)))
if not argv_contains('--launcher'):
sys.argv.append('--private={}'.format(
@ -145,4 +145,4 @@ def _set_user_options():
BdistAPK.user_options = user_options
_set_user_options()
_set_user_options()