[script] format

This commit is contained in:
tangxifan 2023-12-12 13:15:03 -08:00
parent 4c0f6e2273
commit f689ef7654
2 changed files with 13 additions and 4 deletions

View File

@ -89,7 +89,12 @@ parser.add_argument(
default=os.path.join(openfpga_base_dir, "tmp"),
help="Directory to store intermidiate file & final results",
)
parser.add_argument("--default_tool_path", type=str, default=os.path.join(flow_script_dir, os.pardir, "misc", "fpgaflow_default_tool_path.conf"), help="The configuraton file contains paths to tools as well as keywords to be extracted from logs")
parser.add_argument(
"--default_tool_path",
type=str,
default=os.path.join(flow_script_dir, os.pardir, "misc", "fpgaflow_default_tool_path.conf"),
help="The configuraton file contains paths to tools as well as keywords to be extracted from logs",
)
parser.add_argument(
"--openfpga_shell_template",
type=str,
@ -398,8 +403,7 @@ def main():
def check_required_file(default_tool_path):
"""Function ensure existace of all required files for the script"""
files_dict = {
"CAD TOOL PATH": default_tool_path
,
"CAD TOOL PATH": default_tool_path,
}
for filename, filepath in files_dict.items():
if not os.path.isfile(filepath):

View File

@ -77,7 +77,12 @@ parser.add_argument("--continue_on_fail", action="store_true", help="Exit script
parser.add_argument(
"--show_thread_logs", action="store_true", help="Skips logs from running thread"
)
parser.add_argument("--default_tool_path", type=str, default=os.path.join(task_script_dir, os.pardir, "misc", "fpgaflow_default_tool_path.conf"), help="The configuraton file contains paths to tools as well as keywords to be extracted from logs")
parser.add_argument(
"--default_tool_path",
type=str,
default=os.path.join(task_script_dir, os.pardir, "misc", "fpgaflow_default_tool_path.conf"),
help="The configuraton file contains paths to tools as well as keywords to be extracted from logs",
)
args = parser.parse_args()
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =