From 1fa699b1753cf577b54e042b1ddc32b170a8ae0c Mon Sep 17 00:00:00 2001 From: Austin Appleby Date: Mon, 25 Mar 2024 16:44:25 -0700 Subject: [PATCH] file name at top, don't need imports --- tutorial/rules.hancho | 1 - tutorial/src/src.hancho | 3 +-- tutorial/tut3.hancho | 1 + tutorial/tut4.hancho | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tutorial/rules.hancho b/tutorial/rules.hancho index 9354aeb..97fa13c 100644 --- a/tutorial/rules.hancho +++ b/tutorial/rules.hancho @@ -1,6 +1,5 @@ # tutorial/rules.hancho from hancho import * -import os compile = build_config.rule( desc = "Compile {rel_source_files} -> {rel_build_files}", diff --git a/tutorial/src/src.hancho b/tutorial/src/src.hancho index cc8d11d..27814ec 100644 --- a/tutorial/src/src.hancho +++ b/tutorial/src/src.hancho @@ -1,9 +1,8 @@ # tutorial/src/src.hancho from hancho import * -import glob build_config.source_path = Path(__file__).parent rules = load("../rules.hancho", build_config) -rules.c_binary(glob.glob("*.cpp"), "app") +rules.c_binary(glob("*.cpp"), "app") diff --git a/tutorial/tut3.hancho b/tutorial/tut3.hancho index 1beba90..0a9009b 100644 --- a/tutorial/tut3.hancho +++ b/tutorial/tut3.hancho @@ -1,3 +1,4 @@ +# tutorial/tut3.hancho from hancho import * build_config.set_defaults( diff --git a/tutorial/tut4.hancho b/tutorial/tut4.hancho index da2d175..0bd7eda 100644 --- a/tutorial/tut4.hancho +++ b/tutorial/tut4.hancho @@ -1,4 +1,4 @@ -# tutorial/tut3.hancho +# tutorial/tut4.hancho from hancho import * build_config.set_defaults(