Created
May 14, 2020 19:33
-
-
Save godfather68/e7e94f5238fefd517deb012f8b7d9d28 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(self): | |
# Checking if the directory exists | |
if os.path.exists(template_dir): | |
return template_dir | |
else: | |
os.makedirs(template_dir) | |
if os.path.exists(template_dir): | |
return template_dir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment