pathlib.Path(args.output_path).mkdir(
parents=True, exist_ok=True)
pathlib.Path(args.output_path).mkdir(
parents=True, exist_ok=True)
# copy trace list file
try:
shutil.copy(trace_list_file_path, args.output_path)
except shutil.SameFileError:
print("ERROR: Inplace replacement of the trace is not supported: "
# copy trace list file
try:
shutil.copy(trace_list_file_path, args.output_path)
except shutil.SameFileError:
print("ERROR: Inplace replacement of the trace is not supported: "
- assert not os.path.isabs(trace_path), (
- "Absolute path in the trace list file is not supported")
+ if os.path.isabs(trace_path):
+ sys.exit("ERROR: Absolute path in the trace list file is not supported")
convert_trace(trace_path, base_path, args.output_path)
print("Traces converted!")
convert_trace(trace_path, base_path, args.output_path)
print("Traces converted!")