Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. out_dir = 'out'
  2.  
  3. if not os.path.isdir(out_dir):
  4. os.mkdir(out_dir)
  5.  
  6. current_out_dir = os.path.join( out_dir, strftime("%Y-%m-%d__%H_%M_%S", gmtime()) )
  7. os.mkdir(current_out_dir)
  8.  
  9. print('Output will be saved in', current_out_dir)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement