Skip to content

Commit bdda534

Browse files
committed
lkql/manage.py: fix root directory computation
The root directory must always be `lkql/`, not "the current directory" (i.e. anyhere from which the `manage.py` script is run). Unless `--build-dir` is passed, this means that the sources of Liblkqllang will always be generated at `lkql/build/`.
1 parent f8f818d commit bdda534

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lkql/manage.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#! /usr/bin/env python
22

3+
import os.path
4+
35
from langkit.compile_context import CompileCtx
46
import langkit.config as C
57
from langkit.libmanage import ManageScript
@@ -15,7 +17,7 @@ def create_config(self, args):
1517
return C.CompilationConfig(
1618
lkt_spec=None,
1719
library=C.LibraryConfig(
18-
root_directory=".",
20+
root_directory=os.path.dirname(__file__),
1921
language_name=names.Name("Lkql"),
2022
short_name="lkql",
2123
),

0 commit comments

Comments
 (0)