Skip to content

Commit d456238

Browse files
committed
Fixed the compilation step w.r.t algorithm-archivists#963
1 parent 6f01e41 commit d456238

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sconscripts/coconut_SConscript

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Import('files_to_compile env')
2-
from pathlib import Path
32

4-
for file in files_to_compile:
5-
chapter_name = file.parent.parent.parent.stem
6-
env.Coconut(f'#/build/coconut/{chapter_name}.py', str(file))
3+
for file_info in files_to_compile:
4+
build_target = f'#/build/{file_info.language}/{file_info.chapter}/{file_info.path.stem}'
5+
build_result = env.Coconut(build_target, str(file_info.path))
6+
env.Alias(str(file_info.chapter), build_result)

0 commit comments

Comments
 (0)