grade.py: do not resolve HF cache symlinks
Browse files
grade.py
CHANGED
|
@@ -10,10 +10,11 @@ Requires python>=3.10 with numpy, scipy, sympy, networkx.
|
|
| 10 |
"""
|
| 11 |
import importlib.util
|
| 12 |
import json
|
|
|
|
| 13 |
import sys
|
| 14 |
from pathlib import Path
|
| 15 |
|
| 16 |
-
_HERE = Path(
|
| 17 |
_cache = {}
|
| 18 |
|
| 19 |
|
|
|
|
| 10 |
"""
|
| 11 |
import importlib.util
|
| 12 |
import json
|
| 13 |
+
import os
|
| 14 |
import sys
|
| 15 |
from pathlib import Path
|
| 16 |
|
| 17 |
+
_HERE = Path(os.path.abspath(__file__)).parent / "graders" # abspath, not resolve(): HF cache files are symlinks
|
| 18 |
_cache = {}
|
| 19 |
|
| 20 |
|