fix
This commit is contained in:
parent
c990e4103b
commit
bdec6fabf9
1 changed files with 2 additions and 1 deletions
|
@ -53,6 +53,7 @@ class Bot(object):
|
||||||
self.data_dir = os.path.abspath('data/{}'.format(self.name))
|
self.data_dir = os.path.abspath('data/{}'.format(self.name))
|
||||||
if not os.path.exists(self.data_dir):
|
if not os.path.exists(self.data_dir):
|
||||||
self.logger.debug("Data folder not found, creating.")
|
self.logger.debug("Data folder not found, creating.")
|
||||||
|
if not os.path.exists(os.path.abspath('data')):
|
||||||
os.mkdir(os.path.abspath('data'))
|
os.mkdir(os.path.abspath('data'))
|
||||||
os.mkdir(self.data_dir)
|
os.mkdir(self.data_dir)
|
||||||
self.logger.debug("Created data folder.")
|
self.logger.debug("Created data folder.")
|
||||||
|
|
Reference in a new issue