amphora commited on
Commit
dbd06d6
·
verified ·
1 Parent(s): f2d0018

grade.py: do not resolve HF cache symlinks

Browse files
Files changed (1) hide show
  1. grade.py +2 -1
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(__file__).resolve().parent / "graders"
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