Created
June 18, 2020 05:05
-
-
Save yeiichi/f18b69b7eafab577e92bc0b7da3a52a6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env python | |
# coding: utf-8 | |
import os | |
# Directory set up | |
my_project_root_path = input('PROJECT_ROOT_PATH = ? >> ') | |
PROJECT_ROOT_PATH = my_project_root_path | |
SOURCE_PATH = os.path.join(PROJECT_ROOT_PATH, 'source') | |
OUTPUT_PATH = os.path.join(PROJECT_ROOT_PATH, 'output') | |
if not os.path.isdir(SOURCE_PATH): | |
os.makedirs(SOURCE_PATH) | |
if not os.path.isdir(OUTPUT_PATH): | |
os.makedirs(OUTPUT_PATH) | |
print('\nProject Root path: ', PROJECT_ROOT_PATH) | |
print('Source path : ', SOURCE_PATH) | |
print('Output Path : ', OUTPUT_PATH) | |
print('\nFiles in the SP : ', os.listdir(SOURCE_PATH)) | |
print('Files in the OP : ', os.listdir(OUTPUT_PATH)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment