|
@@ -58,7 +58,7 @@ def resize_file(project_id, file_id, max_width, max_height):
|
|
if os.path.isabs(file.path):
|
|
if os.path.isabs(file.path):
|
|
abs_file_path = file.path
|
|
abs_file_path = file.path
|
|
else:
|
|
else:
|
|
- abs_file_path = os.path.join(getcwd(), file.path)
|
|
|
|
|
|
+ abs_file_path = os.path.join(os.getcwd(), file.path)
|
|
|
|
|
|
# extract video thumbnail
|
|
# extract video thumbnail
|
|
if file.type == 'video':
|
|
if file.type == 'video':
|