Remove shutil dependency.
This commit is contained in:
parent
9c4fabfd71
commit
7e13c5f8c5
3
buku
3
buku
@ -29,7 +29,6 @@ from urllib.parse import urljoin, quote, unquote
|
|||||||
import gzip
|
import gzip
|
||||||
import io
|
import io
|
||||||
import signal
|
import signal
|
||||||
import shutil
|
|
||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
# Import libraries needed for encryption
|
# Import libraries needed for encryption
|
||||||
@ -132,7 +131,7 @@ def moveOldDatabase():
|
|||||||
if not os.path.exists(newdbpath):
|
if not os.path.exists(newdbpath):
|
||||||
os.makedirs(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))
|
print("Database was moved from old (%s) to new (%s) location.\n" % (olddbfile, newdbfile))
|
||||||
|
|
||||||
os.rmdir(olddbpath)
|
os.rmdir(olddbpath)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user