This commit is contained in:
Jing Ling
2020-10-11 11:42:46 +08:00
parent c56937caf2
commit 40d6f9394d
+1 -1
View File
@@ -10,7 +10,7 @@ def get_db_path():
db_path = data_storage_dir.joinpath('ip2location.db')
if db_path.exists():
return db_path
zf = zipfile.ZipFile(zip_path)
zf = zipfile.ZipFile(str(zip_path))
zf.extract('ip2location.db', data_storage_dir)
return db_path