Skip to content

Commit

Permalink
Extract code to main() function
Browse files Browse the repository at this point in the history
  • Loading branch information
steckhelena committed Jul 17, 2022
1 parent 8be4d99 commit 25fdcb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def parse_command_line_options():
return result


if __name__ == "__main__":
def main():
parsed_commands = parse_command_line_options()

mpd_paths = parsed_commands.mpd_path
Expand Down Expand Up @@ -735,3 +735,7 @@ def parse_command_line_options():
) as f:
f.write(f"{experiment_ordered_hash}\n")
done_experiment_hashes.add(experiment_ordered_hash)


if __name__ == "__main__":
main()

0 comments on commit 25fdcb3

Please sign in to comment.