Просмотр исходного кода

Merge branch 'bugfix/err_to_name_paths_windows_v3.3' into 'release/v3.3'

tools: fix path handling errors in gen_esp_err_to_name.py for Windows (v3.3)

See merge request espressif/esp-idf!10898
Angus Gratton 5 лет назад
Родитель
Сommit
71af965514
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      tools/gen_esp_err_to_name.py

+ 3 - 3
tools/gen_esp_err_to_name.py

@@ -40,13 +40,13 @@ import textwrap
 import functools
 import functools
 
 
 # list files here which should not be parsed
 # list files here which should not be parsed
-ignore_files = ['components/mdns/test_afl_fuzz_host/esp32_compat.h']
+ignore_files = [os.path.join('components', 'mdns', 'test_afl_fuzz_host', 'esp32_compat.h')]
 
 
 # add directories here which should not be parsed
 # add directories here which should not be parsed
-ignore_dirs = ('examples')
+ignore_dirs = os.path.join('examples')
 
 
 # macros from here have higher priorities in case of collisions
 # macros from here have higher priorities in case of collisions
-priority_headers = ['components/esp32/include/esp_err.h']
+priority_headers = [os.path.join('components', 'esp32', 'include', 'esp_err.h')]
 
 
 err_dict = collections.defaultdict(list)  # identified errors are stored here; mapped by the error code
 err_dict = collections.defaultdict(list)  # identified errors are stored here; mapped by the error code
 rev_err_dict = dict()  # map of error string to error code
 rev_err_dict = dict()  # map of error string to error code