# It then,for each pair team # (4) creates a repo for the team (if it doesn't already exist) # (5) populates it, but only if it was JUST created. import getpass import argparse import os import sys from github_acadwf import addPyGithubToPath from github_acadwf import updatePairsForLab #from github_acadwf import createLabRepo #from github_acadwf import findTeam #from github_acadwf import pushFilesToRepo addPyGithubToPath() from github import Github from github import GithubException try: import config except ImportError: print("Could not import configuration") sys.exit(1) defaultInputFilename = config.getStudentsFile() parser = argparse.ArgumentParser( description='Update for lab only for new users')
import getpass import argparse import os import sys from github_acadwf import addPyGithubToPath from github_acadwf import addTeamsForPairsInFile try: import config except ImportError: print("Could not import config") sys.exit(1) addPyGithubToPath() from github import Github from github import GithubException defaultInputFileName = config.getStudentsFile() defaultPairFileName = config.getPairsFile() parser = argparse.ArgumentParser(description='Setup teams for pairs') parser.add_argument('-i','--inFileName', help='input file (default: ' + defaultInputFileName+"'", default=defaultInputFileName) parser.add_argument('-p','--pairFileName', help='pair file (default: ' + defaultPairFileName+"'",