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 6f01e41 commit d456238Copy full SHA for d456238
sconscripts/coconut_SConscript
@@ -1,6 +1,6 @@
1
Import('files_to_compile env')
2
-from pathlib import Path
3
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))
+for file_info in files_to_compile:
+ build_target = f'#/build/{file_info.language}/{file_info.chapter}/{file_info.path.stem}'
+ build_result = env.Coconut(build_target, str(file_info.path))
+ env.Alias(str(file_info.chapter), build_result)
0 commit comments