Fixed a bug with image loading.

This commit is contained in:
Joey Payne 2015-11-12 08:49:16 -07:00
commit 728f05513a
3 changed files with 16 additions and 2 deletions

View file

@ -19,7 +19,11 @@ def get_temp_dir():
return tempfile.gettempdir()
def path_join(base, *rest):
return base + u'/' + u'/'.join(rest)
rpath = u'/'.join(rest)
if os.path.isabs(rpath):
return rpath
else:
return base + u'/' + rpath
def get_data_path(dir_path):
parts = dir_path.split('/')