File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 10
10
_ROOT_DIR = Path (__file__ ).parent
11
11
12
12
13
- # Explicitly cast to str as tree_sitter.Language.build expects str
14
- _SHARED_LIB_PATH = str ((_ROOT_DIR / "cedarscript.so" ).absolute ())
15
-
16
-
17
13
def language () -> Language :
18
14
"""Load the tree-sitter library for CEDARScript."""
19
15
@@ -28,8 +24,6 @@ def language() -> Language:
28
24
else :
29
25
raise OSError (f"Unsupported platform: { sys .platform } " )
30
26
31
- # Explicitly cast to str as tree_sitter.Language.build expects str
32
- cedar_language_path = str ((_ROOT_DIR / lib_name ).absolute ())
33
- # cedar_language_path = os.path.abspath(os.path.join(_ROOT_DIR, lib_name))
34
- logger .warning (f"[{ __name__ } ] Loading native CEDARScript parsing library from { cedar_language_path } " )
35
- return Language (cedar_language_path , "CEDARScript" )
27
+ language_path = str ((_ROOT_DIR / lib_name ).absolute ())
28
+ logger .warning (f"[{ __name__ } ] Loading native CEDARScript parsing library from { language_path } " )
29
+ return Language (language_path , "CEDARScript" )
You can’t perform that action at this time.
0 commit comments