From 64bd9053a25297f7a442ca831c7da5b44bd33f84 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 12 Jun 2024 17:54:40 +1000 Subject: Update LVGL to v9.1.0 --- lib/lvgl/scripts/code-format.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'lib/lvgl/scripts/code-format.py') diff --git a/lib/lvgl/scripts/code-format.py b/lib/lvgl/scripts/code-format.py index fc126c8d..97acc725 100755 --- a/lib/lvgl/scripts/code-format.py +++ b/lib/lvgl/scripts/code-format.py @@ -2,14 +2,18 @@ import os -print("Formatting src") -os.system('astyle --options=code-format.cfg --recursive "../src/*.c,*.h"') +script_dir = os.path.realpath(__file__) +script_dir = os.path.dirname(script_dir) +cfg_file = os.path.join(script_dir, 'code-format.cfg') print("\nFormatting demos") -os.system('astyle --options=code-format.cfg --recursive "../demos/*.c,*.h"') +os.system(f'astyle --options={cfg_file} --recursive "{script_dir}/../demos/*.c,*.cpp,*.h"') print("\nFormatting examples") -os.system('astyle --options=code-format.cfg --recursive "../examples/*.c,*.h"') +os.system(f'astyle --options={cfg_file} --recursive "{script_dir}/../examples/*.c,*.cpp,*.h"') + +print("Formatting src") +os.system(f'astyle --options={cfg_file} --recursive "{script_dir}/../src/*.c,*.cpp,*.h"') print("\nFormatting tests") -os.system('astyle --options=code-format.cfg --recursive "../tests/src/test_cases/*.c"') +os.system(f'astyle --options={cfg_file} --recursive "{script_dir}/../tests/*.c,*.cpp,*.h"') -- cgit v1.2.3