Skip to content

Commit

Permalink
prepend root before save
Browse files Browse the repository at this point in the history
  • Loading branch information
bmccann committed Jan 10, 2019
1 parent eed545b commit cd997f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def parse():
args.log_dir = os.path.join(args.save, args.name)
args.dist_sync_file = os.path.join(args.log_dir, 'distributed_sync_file')

save_args(args)
for x in ['data', 'save', 'embeddings', 'log_dir']:
for x in ['data', 'save', 'embeddings', 'log_dir', 'dist_sync_file']:
setattr(args, x, os.path.join(args.root, getattr(args, x)))
save_args(args)

return args

0 comments on commit cd997f2

Please sign in to comment.