Skip to content

Commit

Permalink
removed old / debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
RCMast3r committed Dec 28, 2023
1 parent 74d948c commit b155ef2
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions generator/pio_lib_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit b155ef2

Please sign in to comment.