diff --git a/README.md b/README.md index 269673a0b6..aef7e5e4ef 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ to install and begin creating APKs and AABs. (for the develop branch: `pip install git+https://github.com/kivy/python-for-android.git`) -Test that the install works with: +Test that theinstall works with: p4a --version diff --git a/pythonforandroid/util.py b/pythonforandroid/util.py index f290cdcb25..df4e79f810 100644 --- a/pythonforandroid/util.py +++ b/pythonforandroid/util.py @@ -1,6 +1,7 @@ import contextlib from os.path import exists, join -from os import getcwd, chdir, makedirs, walk, uname +from os import getcwd, chdir, makedirs, walk +from platform import uname import shutil from fnmatch import fnmatch from tempfile import mkdtemp @@ -8,7 +9,7 @@ build_platform = '{system}-{machine}'.format( - system=uname()[0], machine=uname()[-1]).lower() + system=uname().system, machine=uname().machine.lower()) """the build platform in the format `system-machine`. We use this string to define the right build system when compiling some recipes or to get the right path for clang compiler"""