你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-06 20:46:52 +08:00
Correct bug which required rewinding of file for subsequent reading. Introduced when moving to file name or file object handling for input file.
这个提交包含在:
@@ -36,6 +36,9 @@ def process_python_include_code(inputfile, usernamespace):
|
||||
|
||||
# Strip out any newline characters and comments that must begin with double hashes
|
||||
inputlines = [line.rstrip() for line in inputfile if(not line.startswith('##') and line.rstrip('\n'))]
|
||||
|
||||
# Rewind input file in preparation for any subsequent reading function
|
||||
inputfile.seek(0)
|
||||
|
||||
# List to hold final processed commands
|
||||
processedlines = []
|
||||
|
在新工单中引用
屏蔽一个用户