diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-06-12 17:54:40 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-06-12 17:54:40 +1000 |
| commit | 64bd9053a25297f7a442ca831c7da5b44bd33f84 (patch) | |
| tree | a90c6cad25a12028302ab1a5334510fba0229bae /lib/lvgl/scripts/code-format.py | |
| parent | 611176ed667c4ed7ee9f609e958f9404f4aee91d (diff) | |
| download | tangara-fw-64bd9053a25297f7a442ca831c7da5b44bd33f84.tar.gz | |
Update LVGL to v9.1.0
Diffstat (limited to 'lib/lvgl/scripts/code-format.py')
| -rwxr-xr-x | lib/lvgl/scripts/code-format.py | 14 |
1 files changed, 9 insertions, 5 deletions
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"') |
