Skip to content

Instantly share code, notes, and snippets.

@yeiichi
Created June 18, 2020 05:05
Show Gist options
  • Save yeiichi/f18b69b7eafab577e92bc0b7da3a52a6 to your computer and use it in GitHub Desktop.
Save yeiichi/f18b69b7eafab577e92bc0b7da3a52a6 to your computer and use it in GitHub Desktop.
#!/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