Remove shutil dependency.

This commit is contained in:
Arun Prakash Jana 2016-05-14 20:59:03 +05:30
parent 9c4fabfd71
commit 7e13c5f8c5
No known key found for this signature in database
GPG Key ID: C0A712ED95043DCB

3
buku
View File

@ -29,7 +29,6 @@ from urllib.parse import urljoin, quote, unquote
import gzip
import io
import signal
import shutil
import textwrap
# Import libraries needed for encryption
@ -132,7 +131,7 @@ def moveOldDatabase():
if not os.path.exists(newdbpath):
os.makedirs(newdbpath)
shutil.move(olddbfile, newdbfile)
os.rename(olddbfile, newdbfile)
print("Database was moved from old (%s) to new (%s) location.\n" % (olddbfile, newdbfile))
os.rmdir(olddbpath)