Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix: Correctly set overwrite option when specified #3021

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions workflow/setup_expt.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
import os
import glob
import shutil
import warnings
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter, SUPPRESS

from hosts import Host

from wxflow import parse_j2yaml
from wxflow import AttrDict
from wxflow import to_datetime, to_timedelta, datetime_to_YMDH
from wxflow import to_datetime, datetime_to_YMDH


_here = os.path.dirname(__file__)
Expand Down Expand Up @@ -303,7 +302,7 @@ def query_and_clean(dirname, force_clean=False):
if os.path.exists(dirname):
print(f'\ndirectory already exists in {dirname}')
if force_clean:
overwrite = True
overwrite = "YES"
print(f'removing directory ........ {dirname}\n')
else:
overwrite = input('Do you wish to over-write [y/N]: ')
Expand Down
Loading