File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11from collections .abc import Callable
22from hashlib import sha256
3- from pathlib import Path
43from pickle import dump
54from tempfile import NamedTemporaryFile
65from typing import Any
@@ -64,8 +63,8 @@ def get_disambiguator(self):
6463 @classmethod
6564 def from_function (cls , py_func , py_file ):
6665 """Create a locator instance for functions stored in CACHED_SRC_FUNCTIONS."""
67- if config . numba__cache and py_func in CACHED_SRC_FUNCTIONS :
68- return cls (py_func , Path ( py_file ). parent , CACHED_SRC_FUNCTIONS [py_func ])
66+ if py_func in CACHED_SRC_FUNCTIONS and config . numba__cache :
67+ return cls (py_func , py_file , CACHED_SRC_FUNCTIONS [py_func ])
6968
7069
7170# Register our locator at the front of Numba's locator list
You can’t perform that action at this time.
0 commit comments