Пример #1
0
def main(args):
    git_root = get_git_root(args.git_exe)
    os.chdir(git_root)

    dmb_root_dir = args.directory
    mkdir_for_keeps(dmb_root_dir)

    with open(DIFFSCUSS_MB_FILE_NAME, 'wb') as fil:
        fil.write(dmb_root_dir)

    users_dir = os.path.join(dmb_root_dir, USERS_DIR_NAME)
    mkdir_for_keeps(users_dir)

    reviews_dir = os.path.join(dmb_root_dir, REVIEWS_DIR_NAME)
    mkdir_for_keeps(reviews_dir)
Пример #2
0
def main(args):
    check_inited(args.git_exe)
    inbox = args.inbox
    inbox_path = get_inbox_path(inbox, args.git_exe)
    mkdir_for_keeps(inbox_path)