Skip to content

Commit d0cb7ce

Browse files
committed
* 去除不编译的文件,包括其import的环境也不写入
1 parent f8f12e7 commit d0cb7ce

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# 更新日志
22

3-
## JadeV2.3.9 - 2025-06-11
4-
* 支持编译时不编译某个文件
3+
## JadeV2.4.0 - 2025-06-11
4+
* 去除不编译的文件,包括其import的环境也不写入
55
---
66

77
<details onclose>
88
<summary>查看更多更新日志</summary>
99

10+
## JadeV2.3.9 - 2025-06-11
11+
* 支持编译时不编译某个文件
12+
---
13+
14+
1015
## JadeV2.3.8 - 2025-05-06
1116
* 固定Cython版本,解决可执行文件运行失败的问题
1217
---

jade/jade_packing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ def writePyContent(args,src_path,new_src_path,src_path_list,src_import_list,impo
7474
for file_name in os.listdir(src_path):
7575
if os.path.isfile(os.path.join(src_path, file_name)):
7676
file_name_suffix = re.search(r"\.(\w+)$", file_name).group(1)
77-
if file_name_suffix == "py":
78-
if "__init__.py" == file_name :
77+
if file_name_suffix == "py" and file_name not in str_to_list(args.remove_specify_files):
78+
if "__init__.py" == file_name :
7979
if src_path not in src_path_list :
8080
with open(os.path.join(new_src_path, GetLastDir(src_path)) + ".py", "wb") as f1:
8181
with open(os.path.join(src_path, file_name), "rb") as f:

0 commit comments

Comments
 (0)