[script] format
This commit is contained in:
parent
4c0f6e2273
commit
f689ef7654
|
@ -89,7 +89,12 @@ parser.add_argument(
|
||||||
default=os.path.join(openfpga_base_dir, "tmp"),
|
default=os.path.join(openfpga_base_dir, "tmp"),
|
||||||
help="Directory to store intermidiate file & final results",
|
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(
|
parser.add_argument(
|
||||||
"--openfpga_shell_template",
|
"--openfpga_shell_template",
|
||||||
type=str,
|
type=str,
|
||||||
|
@ -398,8 +403,7 @@ def main():
|
||||||
def check_required_file(default_tool_path):
|
def check_required_file(default_tool_path):
|
||||||
"""Function ensure existace of all required files for the script"""
|
"""Function ensure existace of all required files for the script"""
|
||||||
files_dict = {
|
files_dict = {
|
||||||
"CAD TOOL PATH": default_tool_path
|
"CAD TOOL PATH": default_tool_path,
|
||||||
,
|
|
||||||
}
|
}
|
||||||
for filename, filepath in files_dict.items():
|
for filename, filepath in files_dict.items():
|
||||||
if not os.path.isfile(filepath):
|
if not os.path.isfile(filepath):
|
||||||
|
|
|
@ -77,7 +77,12 @@ parser.add_argument("--continue_on_fail", action="store_true", help="Exit script
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--show_thread_logs", action="store_true", help="Skips logs from running thread"
|
"--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()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
|
||||||
|
|
Loading…
Reference in New Issue