Fixed a bug with image loading.
This commit is contained in:
parent
02f7c0cdfb
commit
728f05513a
3 changed files with 16 additions and 2 deletions
6
utils.py
6
utils.py
|
|
@ -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('/')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue