@@ -116,7 +116,8 @@ def handler():
116
116
117
117
insights_start_time = time .time ()
118
118
119
- log = darshanll .log_open (args .log_path )
119
+ darshan_log_path = args .log_paths [0 ]
120
+ log = darshanll .log_open (darshan_log_path )
120
121
121
122
modules = darshanll .log_get_modules (log )
122
123
@@ -129,8 +130,8 @@ def handler():
129
130
library_version = darshanll .get_lib_version ()
130
131
131
132
# Make sure log format is of the same version
132
- filename = args . log_path
133
- # check_log_version(console, args.log_path , log_version, library_version)
133
+ filename = darshan_log_path
134
+ # check_log_version(console, darshan_log_path , log_version, library_version)
134
135
135
136
darshanll .log_close (log )
136
137
@@ -752,7 +753,7 @@ def handler():
752
753
job ['exe' ].split ()[0 ]
753
754
),
754
755
' [b]DARSHAN[/b]: [white]{}[/white]' .format (
755
- os .path .basename (args . log_path )
756
+ os .path .basename (darshan_log_path )
756
757
),
757
758
' [b]EXECUTION TIME[/b]: [white]{} to {} ({:.2f} hours)[/white]' .format (
758
759
job_start ,
@@ -794,7 +795,7 @@ def handler():
794
795
display_footer (console , insights_start_time , insights_end_time )
795
796
796
797
# Export to HTML, SVG, and CSV
797
- trace_name = os .path .basename (args . log_path ).replace ('.darshan' , '' )
798
+ trace_name = os .path .basename (darshan_log_path ).replace ('.darshan' , '' )
798
799
out_dir = args .export_dir if args .export_dir != "" else os .getcwd ()
799
800
800
801
export_html (console , out_dir , trace_name )
0 commit comments