def download_log_of_current_script():
try:<EOL><INDENT>src_file = get_workbench().get_current_editor().get_filename(False)<EOL>if src_file is None:<EOL><INDENT>return<EOL><DEDENT>download_log(src_file)<EOL><DEDENT>except Exception:<EOL><INDENT>error_msg = traceback.format_exc(<NUM_LIT:0>)+'<STR_LIT:\n>'<EOL>showerror("<STR_LIT>", error_msg)<EOL><DEDENT>
download log of current python script from EV3