Commit aaa6c245 authored by Adam Blank's avatar Adam Blank
Browse files

try now

No related merge requests found
Showing with 22 additions and 1 deletion
+22 -1
import time import time
import checker from driver import checker
print(checker.check("abcd")) print(checker.check("abcd"))
import requests
import sys
import importlib
version = ''.join(sys.version.split(" ")[0].split(".")[:-1])
result = requests.get(
f'https://gitlab.caltech.edu/cs1-24fa/lecture-code/-/raw/master/e1/checker/checker.cpython-{version}.pyc')
with open('checker.pyc', 'wb') as f:
f.write(result.content)
def load(x):
spec = importlib.util.spec_from_file_location(
x, f"checker.pyc")
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)
return mod
checker = load('checker')
check = checker.check
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment