Created
January 28, 2020 20:36
-
-
Save engineervix/66532b6c853e8a4ac9b504aba9ce45ee to your computer and use it in GitHub Desktop.
create directories if they don't exist
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
import os | |
d = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
out_dir = os.path.join(d, "dir_name") | |
os.makedirs(out_dir, exist_ok=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment