Skip to content

Commit 9a8fbf5

Browse files
committed
Merge branch 'bugfix/remove_incompatiable_header' into 'master'
Closes #179 See merge request ae_group/ESP32_Display_Panel!13
2 parents 7eb03b6 + 3d8c5d5 commit 9a8fbf5

28 files changed

+70
-47
lines changed

.github/workflows/check_lib_versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
echo "prerelease: ${{ steps.last_release.outputs.prerelease }}"
2727
echo "url: ${{ steps.last_release.outputs.url }}"
2828
- name: Check & Compare versions
29-
run: bash ./.github/scripts/check_lib_versions.sh --latest_version=${{ steps.last_release.outputs.tag_name }}
29+
run: bash ./tools/check_lib_versions.sh --latest_version=${{ steps.last_release.outputs.tag_name }}

.gitlab/tools/executable-list.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,33 +77,33 @@ repos:
7777
hooks:
7878
- id: check-executables
7979
name: Check File Permissions
80-
entry: .gitlab/tools/check_executables.py --action executables
80+
entry: ./tools/check_executables.py --action executables
8181
language: python
8282
types: [executable]
8383
exclude: '\.pre-commit/.+'
8484
- id: check-executable-list
8585
name: Validate executable-list.txt
86-
entry: .gitlab/tools/check_executables.py --action list
86+
entry: ./tools/check_executables.py --action list
8787
language: python
8888
pass_filenames: false
8989
always_run: true
9090
- id: sync-conf-files
9191
name: Update when configuration files change
92-
entry: python3 tools/sync_conf_files.py ./ ./
92+
entry: python3 ./tools/sync_conf_files.py ./ ./
9393
language: system
9494
files: '.*esp_panel_(board_custom|board_supported|drivers)_conf\.h'
9595
- id: sync-template-files
9696
name: Update when template files change
97-
entry: python3 tools/sync_conf_files.py ./template_files ./
97+
entry: python3 ./tools/sync_conf_files.py ./template_files ./
9898
language: system
9999
files: '(.*esp_utils_conf\.h|.*lv_conf\.h|.*lvgl_v8_port\.cpp|.*lvgl_v8_port\.h)'
100100
- id: check-file-versions
101101
name: Update when versions change
102-
entry: python3 tools/check_file_version.py ./
102+
entry: python3 ./tools/check_file_version.py ./
103103
language: system
104104
files: '(.*esp_panel_(board_custom|board_supported|drivers)_conf\.h|library.properties|.*esp_panel_versions.h)'
105105
- id: check-library-versions
106106
name: Check library versions
107-
entry: ./.github/scripts/check_lib_versions.sh
107+
entry: ./tools/check_lib_versions.sh
108108
language: system
109109
files: '(idf_component.yml|library.properties)'

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# ChangeLog
22

3+
## v1.0.2 - 2025-03-24
4+
5+
### Bugfixes:
6+
7+
* fix(io_expander): remove incompatible header (#175)
8+
* fix(pre-commit): update the pre-commit script
9+
* fix(docs): update README
10+
* fix(conf): update comments of custom config file
11+
* fix(examples): enable CPU 240M and task WDT default in esp_idf/lvgl_v8_port
12+
313
## v1.0.1 - 2025-03-13
414

515
### Enhancements:

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ The functional block diagram is shown below:
115115
* [How to select and configure supported boards in Arduino IDE?](./docs/envs/use_with_arduino.md#how-to-select-and-configure-supported-boards-in-arduino-ide)
116116
* [How to use SquareLine exported UI source files in Arduino IDE?](./docs/envs/use_with_arduino.md#how-to-use-squareline-exported-ui-source-files-in-arduino-ide)
117117
* [How to debug when the screen doesn't light up using the library in Arduino IDE?](./docs/envs/use_with_arduino.md#how-to-debug-when-the-screen-doesnt-light-up-using-the-library-in-arduino-ide)
118-
* [How to reduce Flash usage and speed up compilation when using ESP32_Display_Panel in Arduino IDE?](./docs/envs/use_with_arduino.md#how-to-reduce-flash-usage-and-speed-up-compilation-when-using-esp32_display_panel-in-arduino-ide)
119-
* [Can't see log messages or messages are incomplete in Arduino IDE's Serial Monitor, how to fix?](./docs/envs/use_with_arduino.md#can-t-see-log-messages-or-messages-are-incomplete-in-arduino-ides-serial-monitor-how-to-fix)
118+
* [How to fix the issue that log messages are missing or incomplete in Arduino IDE's Serial Monitor?](./docs/envs/use_with_arduino.md#how-to-fix-the-issue-that-log-messages-are-missing-or-incomplete-in-arduino-ides-serial-monitor)
120119
* [Solution for screen drift issue when using ESP32-S3 to drive RGB LCD in Arduino IDE](./docs/envs/use_with_arduino.md#solution-for-screen-drift-issue-when-using-esp32-s3-to-drive-rgb-lcd-in-arduino-ide)
120+
* [How to reduce Flash usage and speed up compilation when using ESP32_Display_Panel in Arduino IDE?](./docs/envs/use_with_arduino.md#how-to-reduce-flash-usage-and-speed-up-compilation-when-using-esp32_display_panel-in-arduino-ide)
121+
* [How to avoid I2C re-initialization when using ESP32_Display_Panel in Arduino IDE (e.g., when using Wire library)?](./docs/envs/use_with_arduino.md#how-to-avoid-i2c-re-initialization-when-using-esp32_display_panel-in-arduino-ide-eg-when-using-wire-library)
121122

122123
* [ESP-IDF](./docs/envs/use_with_idf.md#faq)
123124

README_CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ ESP32_Display_Panel 的主要特性如下:
118118
* [在 Arduino IDE 中打开串口调试器看不到日志信息或日志信息显示不全,如何解决?](./docs/envs/use_with_arduino_cn.md#在-arduino-ide-中打开串口调试器看不到日志信息或日志信息显示不全如何解决)
119119
* [在 Arduino IDE 中使用 ESP32-S3 驱动 RGB LCD 时出现画面漂移问题的解决方案](./docs/envs/use_with_arduino_cn.md#在-arduino-ide-中使用-esp32-s3-驱动-rgb-lcd-时出现画面漂移问题的解决方案)
120120
* [在 Arduino IDE 中使用 ESP32_Display_Panel 时,如何降低其 Flash 占用及加快编译速度?](./docs/envs/use_with_arduino_cn.md#在-arduino-ide-中使用-esp32_display_panel-时如何降低其-flash-占用及加快编译速度)
121+
* [在 Arduino IDE 中使用 ESP32_Display_Panel 时,如何避免 I2C 重复初始化(如使用 Wire 库)?](./docs/envs/use_with_arduino_cn.md#在-arduino-ide-中使用-esp32_display_panel-时如何避免-i2c-重复初始化如使用-wire-库)
121122

122123
* [ESP-IDF](./docs/envs/use_with_idf_cn.md#常见问题及解答)
123124

docs/envs/use_with_arduino.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
- [How to install ESP32\_Display\_Panel in Arduino IDE?](#how-to-install-esp32_display_panel-in-arduino-ide)
3232
- [How to select and configure supported boards in Arduino IDE?](#how-to-select-and-configure-supported-boards-in-arduino-ide)
3333
- [How to use SquareLine exported UI source files in Arduino IDE?](#how-to-use-squareline-exported-ui-source-files-in-arduino-ide)
34-
- [Screen not working in Arduino IDE, how to debug?](#screen-not-working-in-arduino-ide-how-to-debug)
35-
- [Can't see log messages or messages are incomplete in Arduino IDE's Serial Monitor, how to fix?](#cant-see-log-messages-or-messages-are-incomplete-in-arduino-ides-serial-monitor-how-to-fix)
34+
- [How to debug when the screen doesn't light up using the library in Arduino IDE?](#how-to-debug-when-the-screen-doesnt-light-up-using-the-library-in-arduino-ide)
35+
- [How to fix the issue that log messages are missing or incomplete in Arduino IDE's Serial Monitor?](#how-to-fix-the-issue-that-log-messages-are-missing-or-incomplete-in-arduino-ides-serial-monitor)
3636
- [Solution for screen drift issue when using ESP32-S3 to drive RGB LCD in Arduino IDE](#solution-for-screen-drift-issue-when-using-esp32-s3-to-drive-rgb-lcd-in-arduino-ide)
3737
- [How to reduce Flash usage and speed up compilation when using ESP32\_Display\_Panel in Arduino IDE?](#how-to-reduce-flash-usage-and-speed-up-compilation-when-using-esp32_display_panel-in-arduino-ide)
3838
- [How to avoid I2C re-initialization when using ESP32\_Display\_Panel in Arduino IDE (e.g., when using Wire library)?](#how-to-avoid-i2c-re-initialization-when-using-esp32_display_panel-in-arduino-ide-eg-when-using-wire-library)
@@ -506,7 +506,7 @@ Please refer to [Configuring Arduino IDE](#configuring-arduino-ide).
506506
507507
Please refer to [Porting SquareLine Projects](#porting-squareline-projects).
508508
509-
### Screen not working in Arduino IDE, how to debug?
509+
### How to debug when the screen doesn't light up using the library in Arduino IDE?
510510
511511
Please follow these steps to troubleshoot:
512512
@@ -515,7 +515,7 @@ Please follow these steps to troubleshoot:
515515
3. Check detailed log information through the serial monitor to analyze the problem.
516516
4. If the problem still cannot be solved through the above steps, please submit an issue report on [GitHub Issues](https://github.com/esp-arduino-libs/ESP32_Display_Panel/issues) with complete log information.
517517
518-
### Can't see log messages or messages are incomplete in Arduino IDE's Serial Monitor, how to fix?
518+
### How to fix the issue that log messages are missing or incomplete in Arduino IDE's Serial Monitor?
519519
520520
Please follow these steps to resolve:
521521
@@ -553,7 +553,7 @@ Please follow these steps to resolve:
553553
554554
c. **Configure LVGL Task**
555555
556-
- If using LVGL, setting the task that executes `lv_timer_handler()` to run on the same core as the RGB LCD initialization task can help mitigate the screen drift issue
556+
- If using LVGL, setting the task that executes `lv_timer_handler()` to run on the same core as the task that executes `board->begin()` can help mitigate the screen drift issue
557557
558558
3. **Example Code**
559559

docs/envs/use_with_arduino_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ arduino-esp32 v3.x 版本的 SDK 位于默认安装路径下的 `tools > esp32-a
553553
554554
c. **配置 LVGL 任务**
555555
556-
- 如果使用 LVGL,设置执行 `lv_timer_handler()` 任务与执行 RGB LCD 初始化任务在同一个核心上运行可以缓解画面漂移问题
556+
- 如果使用 LVGL,设置执行 `lv_timer_handler()` 的任务与执行 `board->begin()` 的任务在同一个核心上运行可以缓解画面漂移问题
557557
558558
3. **示例代码**
559559

docs/envs/use_with_idf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Please follow these steps to resolve:
106106

107107
c. **Configure LVGL Task**
108108

109-
- If using LVGL, setting the task that executes `lv_timer_handler()` to run on the same core as the RGB LCD initialization task can help mitigate the screen drift issue
109+
- If using LVGL, setting the task that executes `lv_timer_handler()` to run on the same core as the task that executes `board->begin()` can help mitigate the screen drift issue
110110
111111
3. **Example Code**
112112

docs/envs/use_with_idf_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ ESP32_Display_Panel 已上传到 [Espressif 组件库](https://components.espres
106106

107107
c. **配置 LVGL 任务**
108108

109-
- 如果使用 LVGL,设置执行 `lv_timer_handler()` 任务与执行 RGB LCD 初始化任务在同一个核心上运行可以缓解画面漂移问题
109+
- 如果使用 LVGL,设置执行 `lv_timer_handler()` 的任务与执行 `board->begin()` 的任务在同一个核心上运行可以缓解画面漂移问题
110110

111111
3. **示例代码**
112112

esp_panel_board_custom_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,8 @@
736736
*/
737737
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MAJOR 1
738738
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MINOR 0
739-
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_PATCH 1
739+
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_PATCH 2
740740

741-
#endif // ESP_PANEL_BOARD_USE_CUSTOM
741+
#endif // ESP_PANEL_BOARD_DEFAULT_USE_CUSTOM
742742

743743
// *INDENT-ON*

examples/arduino/board/board_static_config/esp_panel_board_custom_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,8 @@
736736
*/
737737
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MAJOR 1
738738
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MINOR 0
739-
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_PATCH 1
739+
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_PATCH 2
740740

741-
#endif // ESP_PANEL_BOARD_USE_CUSTOM
741+
#endif // ESP_PANEL_BOARD_DEFAULT_USE_CUSTOM
742742

743743
// *INDENT-ON*

examples/arduino/gui/lvgl_v8/simple_port/esp_panel_board_custom_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,8 @@
736736
*/
737737
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MAJOR 1
738738
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MINOR 0
739-
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_PATCH 1
739+
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_PATCH 2
740740

741-
#endif // ESP_PANEL_BOARD_USE_CUSTOM
741+
#endif // ESP_PANEL_BOARD_DEFAULT_USE_CUSTOM
742742

743743
// *INDENT-ON*

examples/arduino/gui/lvgl_v8/simple_rotation/esp_panel_board_custom_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,8 @@
736736
*/
737737
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MAJOR 1
738738
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MINOR 0
739-
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_PATCH 1
739+
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_PATCH 2
740740

741-
#endif // ESP_PANEL_BOARD_USE_CUSTOM
741+
#endif // ESP_PANEL_BOARD_DEFAULT_USE_CUSTOM
742742

743743
// *INDENT-ON*

examples/arduino/gui/lvgl_v8/squareline_port/esp_panel_board_custom_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,8 @@
736736
*/
737737
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MAJOR 1
738738
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MINOR 0
739-
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_PATCH 1
739+
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_PATCH 2
740740

741-
#endif // ESP_PANEL_BOARD_USE_CUSTOM
741+
#endif // ESP_PANEL_BOARD_DEFAULT_USE_CUSTOM
742742

743743
// *INDENT-ON*

examples/arduino/gui/lvgl_v8/squareline_wifi_clock/esp_panel_board_custom_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,8 @@
736736
*/
737737
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MAJOR 1
738738
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MINOR 0
739-
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_PATCH 1
739+
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_PATCH 2
740740

741-
#endif // ESP_PANEL_BOARD_USE_CUSTOM
741+
#endif // ESP_PANEL_BOARD_DEFAULT_USE_CUSTOM
742742

743743
// *INDENT-ON*

examples/esp_idf/lvgl_v8_port/sdkconfig.defaults

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
CONFIG_ESP_TASK_WDT_EN=n
21
CONFIG_FREERTOS_HZ=1000
32
CONFIG_COMPILER_CXX_EXCEPTIONS=y
43

examples/esp_idf/lvgl_v8_port/sdkconfig.defaults.esp32s3

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
2+
13
CONFIG_COMPILER_OPTIMIZATION_PERF=y
24

35
CONFIG_SPIRAM=y

examples/platformio/lvgl_v8_port/src/esp_panel_board_custom_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,8 @@
736736
*/
737737
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MAJOR 1
738738
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MINOR 0
739-
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_PATCH 1
739+
#define ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_PATCH 2
740740

741-
#endif // ESP_PANEL_BOARD_USE_CUSTOM
741+
#endif // ESP_PANEL_BOARD_DEFAULT_USE_CUSTOM
742742

743743
// *INDENT-ON*

idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "1.0.1"
1+
version: "1.0.2"
22
description: ESP32_Display_Panel is a display driver and GUI porting library designed by Espressif specifically for ESP series SoCs (ESP32, ESP32-S3, ESP32-P4, etc.)
33
url: https://github.com/esp-arduino-libs/ESP32_Display_Panel
44
repository: https://github.com/esp-arduino-libs/ESP32_Display_Panel.git

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESP32_Display_Panel
2-
version=1.0.1
2+
version=1.0.2
33
author=espressif
44
maintainer=espressif
55
sentence=ESP32_Display_Panel is a display driver and GUI porting library designed by Espressif specifically for ESP series SoCs (ESP32, ESP32-S3, ESP32-P4, etc.)

src/drivers/io_expander/esp_panel_io_expander_adapter.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
#pragma once
77

8-
#include <concepts>
98
#include "utils/esp_panel_utils_log.h"
109
#include "utils/esp_panel_utils_cxx.hpp"
1110
#include "drivers/host/esp_panel_host_i2c.hpp"

src/esp_panel_versions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/* Library Version */
99
#define ESP_PANEL_VERSION_MAJOR 1
1010
#define ESP_PANEL_VERSION_MINOR 0
11-
#define ESP_PANEL_VERSION_PATCH 1
11+
#define ESP_PANEL_VERSION_PATCH 2
1212

1313
/* File `esp_panel_drivers_conf.h` */
1414
#define ESP_PANEL_DRIVERS_CONF_VERSION_MAJOR 1
@@ -18,7 +18,7 @@
1818
/* File `esp_panel_board_custom_conf.h` */
1919
#define ESP_PANEL_BOARD_CUSTOM_VERSION_MAJOR 1
2020
#define ESP_PANEL_BOARD_CUSTOM_VERSION_MINOR 0
21-
#define ESP_PANEL_BOARD_CUSTOM_VERSION_PATCH 1
21+
#define ESP_PANEL_BOARD_CUSTOM_VERSION_PATCH 2
2222

2323
/* File `esp_panel_board_supported_conf.h` */
2424
#define ESP_PANEL_BOARD_SUPPORTED_VERSION_MAJOR 1

.gitlab/tools/check_executables.py renamed to tools/check_executables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def _strip_each_item(iterable: Iterable) -> List:
2525

2626

2727
COMPONENT_PATH = os.getenv('COMPONENT_PATH', os.getcwd())
28-
EXECUTABLE_LIST_FN = os.path.join(COMPONENT_PATH, '.gitlab/tools/executable-list.txt')
28+
EXECUTABLE_LIST_FN = os.path.join(COMPONENT_PATH, 'tools/executable-list.txt')
2929
known_executables = _strip_each_item(open(EXECUTABLE_LIST_FN).readlines())
3030

3131

File renamed without changes.

tools/executable-list.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.gitlab/tools/check_readme_links.py
2+
.gitlab/tools/push_to_github.sh
3+
4+
tools/check_executables.py
5+
tools/check_file_version.py
6+
tools/check_lib_versions.sh
7+
tools/sync_conf_files.py
File renamed without changes.

tools/sync_conf_files.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
'./examples/platformio/lvgl_v8_port/src/lv_conf.h',
1111
]
1212
exclude_dirs = [
13-
'./build',
14-
'./examples/platformio/lvgl_v8_port/.pio',
13+
r'.*build.*',
14+
r'.*pio.*',
1515
]
1616

1717

@@ -25,13 +25,21 @@ def is_same_path(path1, path2):
2525

2626

2727
def is_in_directory(file_path, directory):
28-
directory = os.path.realpath(directory)
28+
import re
2929
file_path = os.path.realpath(file_path)
3030

31-
return file_path.startswith(directory)
31+
# Check if the file path matches any of the exclude directory patterns
32+
for pattern in exclude_dirs:
33+
if re.search(pattern, file_path):
34+
return True
35+
return False
3236

3337

3438
def is_same_file(file1, file2):
39+
# Check if both files exist
40+
if not os.path.exists(file1) or not os.path.exists(file2):
41+
return False
42+
3543
with open(file1, 'r') as f1, open(file2, 'r') as f2:
3644
file1_content = f1.read()
3745
file2_content = f2.read()
@@ -53,7 +61,7 @@ def replace_files(template_directory, search_directory, file_path):
5361
filename = os.path.basename(file_path)
5462
src_file = os.path.join(template_directory, filename)
5563

56-
if is_exclude_file(file_path):
64+
if is_exclude_file(file_path) or not os.path.exists(src_file):
5765
print(f"Skip '{file_path}'")
5866
return
5967

0 commit comments

Comments
 (0)