Skip to content

Commit

Permalink
add expanduser in android sdk/ndk paths configuration
Browse files Browse the repository at this point in the history
fix: #3
  • Loading branch information
tshirtman committed Feb 6, 2013
1 parent 18590dd commit 5c27196
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from pipes import quote
from sys import platform, executable
from buildozer.target import Target
from os.path import join, realpath
from os.path import join, realpath, expanduser
from shutil import copyfile


Expand Down Expand Up @@ -47,8 +47,8 @@ def android_minapi(self):

@property
def android_sdk_dir(self):
directory = self.buildozer.config.getdefault(
'app', 'android.sdk_path', '')
directory = expanduser(self.buildozer.config.getdefault(
'app', 'android.sdk_path', ''))
if directory:
return realpath(directory)
version = self.buildozer.config.getdefault(
Expand All @@ -58,8 +58,8 @@ def android_sdk_dir(self):

@property
def android_ndk_dir(self):
directory = self.buildozer.config.getdefault(
'app', 'android.ndk_path', '')
directory = expanduser(self.buildozer.config.getdefault(
'app', 'android.ndk_path', ''))
if directory:
return realpath(directory)
version = self.buildozer.config.getdefault(
Expand All @@ -69,8 +69,8 @@ def android_ndk_dir(self):

@property
def apache_ant_dir(self):
directory = self.buildozer.config.getdefault(
'app', 'android.ant_path', '')
directory = expanduser(self.buildozer.config.getdefault(
'app', 'android.ant_path', ''))
if directory:
return realpath(directory)
version = self.buildozer.config.getdefault(
Expand Down

0 comments on commit 5c27196

Please sign in to comment.