fix gpx upload - #28
the temp directory path may differ depending on OS
This commit is contained in:
parent
07aa95838a
commit
154282e19a
@ -295,7 +295,7 @@ def get_new_file_path(
|
|||||||
if not os.path.exists(dir_path):
|
if not os.path.exists(dir_path):
|
||||||
os.makedirs(dir_path)
|
os.makedirs(dir_path)
|
||||||
file_path = os.path.join(dir_path,
|
file_path = os.path.join(dir_path,
|
||||||
new_filename.replace('/tmp/', ''))
|
new_filename.split('/')[-1])
|
||||||
return file_path
|
return file_path
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user