Skip to content

Commit

Permalink
Merge pull request #2388 from brussee/unicode-path
Browse files Browse the repository at this point in the history
fix unicode path warning on android
  • Loading branch information
whirm authored Jul 1, 2016
2 parents 42a80ac + 8120080 commit a65d1b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tribler/Core/osutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,16 @@ def get_desktop_dir():
elif is_android():

def get_home_dir():
return os.path.realpath(os.environ['ANDROID_PRIVATE'])
return os.path.realpath(unicode(os.environ['ANDROID_PRIVATE']))

def get_appstate_dir():
return os.path.join(get_home_dir(), '.Tribler')
return os.path.join(get_home_dir(), u'.Tribler')

def get_picture_dir():
return os.path.join(get_desktop_dir(), 'DCIM')
return os.path.join(get_desktop_dir(), u'DCIM')

def get_desktop_dir():
return os.path.realpath(os.environ['EXTERNAL_STORAGE'])
return os.path.realpath(unicode(os.environ['EXTERNAL_STORAGE']))

else:
# linux or darwin (mac)
Expand Down

0 comments on commit a65d1b0

Please sign in to comment.