Skip to content
Snippets Groups Projects
Verified Commit ed3e22ab authored by Thomas Lambert's avatar Thomas Lambert :helicopter:
Browse files

fix(polargen): fix extension overwrite

parent 0f0a012a
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ def cleanup(airfoil):
for file in os.listdir(cwd):
if file.startswith("Coordinates_"):
safe_rename(file, airfoil + ".dat")
elif file.startswith("Polar_"):
elif file.startswith("Polar_") and not (file.endswith(".txt")):
safe_rename(file, file + ".txt")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment