Onionr/onionr/utils/createdirs.py
2019-07-18 12:40:48 -05:00

13 lines
281 B
Python

from . import identifyhome
import dbcreator, filepaths
home = identifyhome.identify_home()
if not os.path.exists(home):
os.mkdir(home)
os.mkdir(filepaths.block_data_location)
for db in dbcreator.create_funcs:
try:
db()
except FileExistsError:
pass