CS代写 #!/usr/bin/env python3

#!/usr/bin/env python3

“”” This is the main runner class that can be invoked to kick off autograding for
both student pre-submission testing and final submission testing

Copyright By PowCoder代写 加微信 powcoder

from manager import manager
from io import StringIO
import sys, pathlib, os, util
sys.path.append(‘/usr/share/codio/assessments’)
from lib.grade import send_grade

def run_test():
“”” Run the standard tests
m = manager()

if __name__ == “__main__”:
# Determine if this is secure test or not. If secure, then log to results.txt
# If not, don’t log it
run_location = pathlib.Path(__file__).parent.absolute()

if len(sys.argv) > 1:
if (sys.argv[1] == ‘force’):
send_grade(int(0))
sys.exit(0)

run_test()
files_to_copy = ‘/home/codio/workspace/.guides/secure/execution-environment/python/export*.txt’
ag_out_dir = ‘/home/codio/workspace/submit/.’
# if os.path.isdir(ag_out_dir):
# util.clear_out_dir(ag_out_dir)
# os.mkdir(ag_out_dir)
os.system(‘cp {} {}’.format(files_to_copy, ag_out_dir))

except Exception as e:
send_grade(int(0))

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com