diff --git a/flask_images/core.py b/flask_images/core.py index 8682604..833d973 100755 --- a/flask_images/core.py +++ b/flask_images/core.py @@ -1,7 +1,6 @@ from __future__ import division from io import BytesIO as StringIO -from subprocess import call import base64 import cgi import datetime @@ -344,7 +343,7 @@ def handle_request(self, path): fh = open(tmp_path, 'wb') fh.write(remote_file) fh.close() - call(['mv', tmp_path, path]) + os.rename(tmp_path, path) else: path = self.find_img(path) if not path: