@@ -2257,7 +2257,7 @@ def merge_dir(out_temp_path, group_mcu_dir, mcu_family, periph_xml, variant_exp)
2257
2257
# Aggregating all generated files
2258
2258
def aggregate_dir ():
2259
2259
# Get mcu_family directories
2260
- out_temp_path = cur_dir / "variants"
2260
+ out_temp_path = tmp_dir
2261
2261
mcu_families = sorted (out_temp_path .glob ("STM32*/" ))
2262
2262
2263
2263
group_mcu_dir = []
@@ -2495,22 +2495,21 @@ def manage_repo():
2495
2495
2496
2496
2497
2497
# main
2498
- cur_dir = Path .cwd ()
2499
- tmp_dir = cur_dir / "variants"
2500
- root_dir = cur_dir .parents [1 ]
2498
+ tmp_dir = script_path / "variants"
2499
+ root_dir = script_path .parents [1 ]
2501
2500
system_path = root_dir / "system"
2502
- templates_dir = cur_dir / "templates"
2501
+ templates_dir = script_path / "templates"
2503
2502
mcu_family_dir = ""
2504
2503
filtered_family = ""
2505
2504
# filtered_mcu_file = ""
2506
2505
periph_c_filename = "PeripheralPins.c"
2507
2506
pinvar_h_filename = "PinNamesVar.h"
2508
- config_filename = Path ( "variant_config.json" )
2507
+ config_filename = script_path / "variant_config.json"
2509
2508
variant_h_filename = "variant_generic.h"
2510
2509
variant_cpp_filename = "variant_generic.cpp"
2511
2510
boards_entry_filename = "boards_entry.txt"
2512
2511
generic_clock_filename = "generic_clock.c"
2513
- repo_local_path = cur_dir / "repo"
2512
+ repo_local_path = script_path / "repo"
2514
2513
cubemxdir = Path ()
2515
2514
gh_url = "https://github.com/STMicroelectronics/STM32_open_pin_data"
2516
2515
repo_name = gh_url .rsplit ("/" , 1 )[- 1 ]
0 commit comments