Skip to content

Commit

Permalink
Fixing make dirs all
Browse files Browse the repository at this point in the history
  • Loading branch information
beardyFace committed Oct 13, 2023
1 parent 78c88e9 commit 490b1e8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cares_reinforcement_learning/util/Record.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,19 @@ def save(self):

def __initialise_directories(self):
if not os.path.exists(self.glob_log_dir):
os.mkdir(self.glob_log_dir)
os.makedirs(self.glob_log_dir)

if not os.path.exists(self.directory):
os.mkdir(self.directory)
os.makedirs(self.directory)

if not os.path.exists(f'{self.directory}/data'):
os.mkdir(f'{self.directory}/data')
os.makedirs(f'{self.directory}/data')

if not os.path.exists(f'{self.directory}/models'):
os.mkdir(f'{self.directory}/models')
os.makedirs(f'{self.directory}/models')

if not os.path.exists(f'{self.directory}/figures'):
os.mkdir(f'{self.directory}/figures')
os.makedirs(f'{self.directory}/figures')

if not os.path.exists(f'{self.directory}/videos'):
os.mkdir(f'{self.directory}/videos')
os.makedirs(f'{self.directory}/videos')

0 comments on commit 490b1e8

Please sign in to comment.