diff --git a/src/pyedb/dotnet/edb.py b/src/pyedb/dotnet/edb.py index 56d56777b9..9e496f1165 100644 --- a/src/pyedb/dotnet/edb.py +++ b/src/pyedb/dotnet/edb.py @@ -221,7 +221,7 @@ def __init__( if not isreadonly: self._check_remove_project_files(edbpath, remove_existing_aedt) - elif edbpath[-3:] in ["brd", "mcm", "sip", "gds", "xml", "dxf", "tgz", "anf"]: + if edbpath[-3:] in ["brd", "mcm", "sip", "gds", "xml", "dxf", "tgz", "anf"]: self.edbpath = edbpath[:-4] + ".aedb" working_dir = os.path.dirname(edbpath) control_file = None