Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
renabriseno68 committed Mar 31, 2018
1 parent ac4bf69 commit 600f637
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildozer/__init__.py
Expand Up @@ -20,9 +20,9 @@
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
Expand Down Expand Up @@ -612,7 +612,7 @@ def file_rename(self, source, target, cwd=None):
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:
Expand Down

0 comments on commit 600f637

Please sign in to comment.