Skip to content

Instantly share code, notes, and snippets.

@uzl
Last active February 21, 2019 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uzl/76f22ae0d3d119a89a036c1b1fec021e to your computer and use it in GitHub Desktop.
Save uzl/76f22ae0d3d119a89a036c1b1fec021e to your computer and use it in GitHub Desktop.
Runtime Directory Creation for Log
out_dir = 'out'
if not os.path.isdir(out_dir):
os.mkdir(out_dir)
current_out_dir = os.path.join( out_dir, strftime("%Y-%m-%d__%H_%M_%S", gmtime()) )
os.mkdir(current_out_dir)
print('Output will be saved in', current_out_dir)
@uzl
Copy link
Author

uzl commented Feb 21, 2019

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment