diff --git a/autograder/cmd/gradeassignment.py b/autograder/cmd/gradeassignment.py index 829ae4bf..ee087753 100644 --- a/autograder/cmd/gradeassignment.py +++ b/autograder/cmd/gradeassignment.py @@ -15,7 +15,8 @@ def run(args): grading_dir = autograder.submission.prep_grading_dir(assignment_config_path, submission_path, debug = args.debug) - result = autograder.submission.run_submission(assignment_config_path, grading_dir) + result = autograder.submission.run_submission(grading_dir, + assignment_config_path = assignment_config_path) if (result is None): return 2 diff --git a/autograder/submission.py b/autograder/submission.py index 8433fa07..c1a58b86 100644 --- a/autograder/submission.py +++ b/autograder/submission.py @@ -149,7 +149,7 @@ def run_test_submission(assignment_config_path, submission_config_path, debug = grading_dir = prep_grading_dir(assignment_config_path, os.path.dirname(submission_config_path), debug = debug) - actual_result = run_submission(assignment_config_path, grading_dir) + actual_result = run_submission(grading_dir, assignment_config_path = assignment_config_path) if (actual_result is None): return False @@ -175,7 +175,7 @@ def compare_test_submission(test_config_path, actual_result, print_result = True return match -def run_submission(assignment_config_path, grading_dir, grader_path = None): +def run_submission(grading_dir, assignment_config_path = None, grader_path = None): if (grader_path is None): grader_path = os.path.join(grading_dir, WORK_DIRNAME, GRADER_FILENAME) diff --git a/setup.py b/setup.py index e519350a..158022cb 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ def get_description(): name = 'autograder-py', url = 'https://github.com/eriq-augustine/autograder-py', - version = '0.3.1', + version = '0.3.2', keywords = 'grading', description = "The Python interface for the autograding server.",