From b155ef2480dbc9399566a593a775d4bb974017bf Mon Sep 17 00:00:00 2001 From: Ben Hall Date: Thu, 28 Dec 2023 14:32:37 -0500 Subject: [PATCH] removed old / debug stuff --- generator/pio_lib_gen.py | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/generator/pio_lib_gen.py b/generator/pio_lib_gen.py index e9e2dec..eb60b28 100644 --- a/generator/pio_lib_gen.py +++ b/generator/pio_lib_gen.py @@ -60,26 +60,14 @@ def copy_to(src, dst): print(f"user_dbcs: {user_dbc_file}") exit(1) -print("yo") -print(user_dbc_file) abs_path_to_dbc = project_dir+'/'+rel_dir_dbc_path - -print(abs_path_to_dbc) -print(generated_src_dir) -print(docker) client = docker.from_env() -print(client.api) -print(client.containers) if not os.path.isdir(generated_src_dir): os.makedirs(generated_src_dir) -# client.containers.run('ghcr.io/rcmast3r/ccoderdbc:main', './build/coderdbc -rw -noconfig -dbc /data/hytech.dbc -out /out -drvname '+drvname,group_add=["1000"], environment=["PUID=1000", "GUID=1000"],volumes=[abs_path_to_dbc+":/data", generated_src_dir+":/out"], working_dir='/app') -client.containers.run('docker.io/library/asdf', './build/coderdbc -rw -dbc /data/hytech.dbc -out /out -drvname '+drvname,group_add=["1000"], user=1000,volumes=[abs_path_to_dbc+":/data", generated_src_dir+":/out"], working_dir='/app') -print(generated_src_dir) +client.containers.run('ghcr.io/rcmast3r/ccoderdbc:main', './build/coderdbc -rw -dbc /data/hytech.dbc -out /out -drvname '+drvname,group_add=["1000"], user=1000,volumes=[abs_path_to_dbc+":/data", generated_src_dir+":/out"], working_dir='/app') + env.Append(CPPPATH=[generated_src_dir, generated_src_dir+'/inc', generated_src_dir+'/lib', generated_src_dir+'/conf']) -global_env = DefaultEnvironment() -# already_called_env_name = "_PROTOBUF_GENERATOR_ALREADY_CALLED_" + env['PIOENV'].replace("-", "_") -# if not global_env.get(already_called_env_name, False): + env.BuildSources(generated_build_dir, generated_src_dir) -print("hello from lib2")