Last active
February 21, 2019 03:27
-
-
Save uzl/76f22ae0d3d119a89a036c1b1fec021e to your computer and use it in GitHub Desktop.
Runtime Directory Creation for Log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Author
uzl
commented
Feb 21, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment