We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94f6710 commit 36ee9e1Copy full SHA for 36ee9e1
chebai/preprocessing/reader.py
@@ -1,3 +1,4 @@
1
+import inspect
2
import os
3
import sys
4
from abc import ABC
@@ -39,7 +40,7 @@ def __init__(
39
40
if collator_kwargs is None:
41
collator_kwargs = dict()
42
self.collator = self.COLLATOR(**collator_kwargs)
- self.dirname = os.path.dirname(__file__)
43
+ self.dirname = os.path.dirname(inspect.getfile(self.__class__))
44
self._token_path = token_path
45
46
def _get_raw_data(self, row: Dict[str, Any]) -> Any:
0 commit comments