File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1- ## python tools V1.4.5
1+ ## python tools V1.4.6
22* 不使用第三方wheel包
33
44## 更新日志
5+ * 优化jade packing 模块
56* 新增version文件
67* update jade packing 支持自定义main函数文件
78* update getSectionConfigs 方法
Original file line number Diff line number Diff line change @@ -190,7 +190,13 @@ def writePy(args):
190190 if args .main .endswith (".py" ):
191191 with open (args .main ,"rb" ) as f2 :
192192 for content in f2 .readlines ():
193- f .write (content )
193+ content_str = str (content ,encoding = "utf-8" )
194+ if content_str [0 ] == "#" :
195+ pass
196+ elif "from src." in content_str :
197+ f .write (content_str .replace ("src." ,"" ).encode ("utf-8" ))
198+ else :
199+ f .write (content )
194200 else :
195201 f .write (args .main .encode ("utf-8" ))
196202 else :
Original file line number Diff line number Diff line change 1- full_version = '1.4.5 '
1+ full_version = '1.4.6 '
You can’t perform that action at this time.
0 commit comments