Last active
May 14, 2020 21:59
-
-
Save godfather68/b44e7552777d5813cd881f6b6db54556 to your computer and use it in GitHub Desktop.
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
def directory_checker(): | |
# Checking if the directory exists | |
if os.path.exists(template_dir): | |
return template_dir | |
else: | |
os.makedirs(template_dir) | |
directory_checker() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment