mirror of https://github.com/axmolengine/axmol.git
set ANDROID_SDK_ROOT to correct path
This commit is contained in:
parent
c72586ddbe
commit
6c564e4c97
4
setup.py
4
setup.py
|
@ -132,7 +132,7 @@ class SetEnvVar(object):
|
|||
file.write('export %s=%s\n' % (key, value))
|
||||
file.write('export PATH=$%s:$PATH\n' % key)
|
||||
if key == ANDROID_SDK_ROOT:
|
||||
file.write('export PATH=$%s/sdk/tools:$%s/sdk/platform-tools:$PATH\n' % (key, key))
|
||||
file.write('export PATH=$%s/tools:$%s/platform-tools:$PATH\n' % (key, key))
|
||||
file.close()
|
||||
return True
|
||||
|
||||
|
@ -271,7 +271,7 @@ class SetEnvVar(object):
|
|||
if not android_sdk_root:
|
||||
return False
|
||||
|
||||
android_path = os.path.join(android_sdk_root, 'sdk/tools/android')
|
||||
android_path = os.path.join(android_sdk_root, 'tools/android')
|
||||
if os.path.isfile(android_path):
|
||||
return True
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue