This commit is contained in:
José Roberto Meza Cabrera 2018-03-31 13:19:14 -06:00
parent 94691c0138
commit ef5e5865fc

View file

@ -20,9 +20,9 @@ from sys import stdout, stderr, exit
from re import search from re import search
from os.path import join, exists, dirname, realpath, splitext, expanduser from os.path import join, exists, dirname, realpath, splitext, expanduser
from subprocess import Popen, PIPE 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 copy import copy
from shutil import copyfile, rmtree, copytree from shutil import copyfile, rmtree, copytree, move
from fnmatch import fnmatch from fnmatch import fnmatch
try: try:
from urllib.request import FancyURLopener from urllib.request import FancyURLopener
@ -612,7 +612,7 @@ class Buildozer(object):
self.debug('Rename {0} to {1}'.format(source, target)) self.debug('Rename {0} to {1}'.format(source, target))
if not os.path.isdir(os.path.dirname(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))) 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): def file_copy(self, source, target, cwd=None):
if cwd: if cwd: