From ef5e5865fc15c4d724485b76848b874d79a2c9a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20Meza=20Cabrera?= Date: Sat, 31 Mar 2018 13:19:14 -0600 Subject: [PATCH] Fixes https://github.com/kivy/buildozer/issues/644 --- buildozer/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildozer/__init__.py b/buildozer/__init__.py index 3bbc2e3..d11007a 100644 --- a/buildozer/__init__.py +++ b/buildozer/__init__.py @@ -20,9 +20,9 @@ from sys import stdout, stderr, exit from re import search from os.path import join, exists, dirname, realpath, splitext, expanduser from subprocess import Popen, PIPE -from os import environ, unlink, rename, walk, sep, listdir, makedirs +from os import environ, unlink, walk, sep, listdir, makedirs from copy import copy -from shutil import copyfile, rmtree, copytree +from shutil import copyfile, rmtree, copytree, move from fnmatch import fnmatch try: from urllib.request import FancyURLopener @@ -612,7 +612,7 @@ class Buildozer(object): self.debug('Rename {0} to {1}'.format(source, target)) if not os.path.isdir(os.path.dirname(target)): self.error('Rename {0} to {1} fails becaues {2} is not a directory'.format(source, target, os.path.directory(target))) - rename(source, target) + move(source, target) def file_copy(self, source, target, cwd=None): if cwd: