Made buildozer respect user sdk dir when accessing sdkmanager
This commit is contained in:
parent
f815965159
commit
a780cc470a
1 changed files with 7 additions and 10 deletions
|
@ -98,12 +98,9 @@ class TargetAndroid(Target):
|
|||
def _sdkmanager(self, *args, **kwargs):
|
||||
"""Call the sdkmanager in our Android SDK with the given arguments."""
|
||||
# Use the android-sdk dir as cwd by default
|
||||
kwargs['cwd'] = kwargs.get(
|
||||
'cwd', os.path.join(self.buildozer.global_platform_dir,
|
||||
'android-sdk'))
|
||||
kwargs['cwd'] = kwargs.get('cwd', self.android_sdk_dir)
|
||||
|
||||
sdkmanager_path = os.path.join(self.buildozer.global_platform_dir,
|
||||
'android-sdk',
|
||||
sdkmanager_path = os.path.join(self.android_sdk_dir,
|
||||
'tools',
|
||||
'bin',
|
||||
'sdkmanager')
|
||||
|
|
Loading…
Reference in a new issue