Skip to content

Commit

Permalink
#221 allow overwrite of zoo session name
Browse files Browse the repository at this point in the history
  • Loading branch information
2320sharon committed Jan 28, 2024
1 parent 3560188 commit deaa77d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coastseg/models_UI.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ def enter_clicked(btn):
session_path = file_utilities.create_directory(os.getcwd(), "sessions")
new_session_path = os.path.join(session_path, session_name)
if os.path.exists(new_session_path):
print(f"Session {session_name} already exists at {new_session_path}")
print(f"Session {session_name} already exists at {new_session_path} and will be overwritten.")
self.set_shoreline_session_name(session_name)
elif not os.path.exists(new_session_path):
print(f"Session {session_name} will be created at {new_session_path}")
self.set_shoreline_session_name(session_name)
Expand Down

0 comments on commit deaa77d

Please sign in to comment.