ansys / pyedb

pyedb is a Python library to use the EDB client library.
https://edb.docs.pyansys.com/
MIT License
3 stars 0 forks source link

FIX: Don't always remove AEDT project files #413

Closed isaacansys closed 2 weeks ago

isaacansys commented 2 weeks ago

Remove AEDT project-related files on EDB open (e.g. file.aedt and/or file.aedt.lock for file.aedb) only if Edb constructor is run with isreadonly False and remove_existing_aedt True.

Fixes #412

isaacansys commented 2 weeks ago

@svandenb-dev BTW it looks like PyAEDT already has some logic to handle an existing .aedt file and open it if you try to open an edb.def or .aedb folder: https://github.com/ansys/pyaedt/blob/87739a9ea3223ee8e57d3d7c6ca7569a4f18eefe/pyaedt/application/Design.py#L1122

I guess we should leave it to users to understand when they have to remove the AEDT file before opening a modified EDB (with the warning I'm introducing here), what do you think?