Commit 4de04d1a authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Solver: Mage: Fix comment for ST file header.

Showing with 6 additions and 2 deletions
+6 -2
......@@ -38,7 +38,11 @@ def mage_file_open(filepath, mode):
if "w" in mode:
# Write header
f.write("* This file is generated by PAMHYR, please don't modify\n")
comment = "*"
if ".ST" in filepath:
comment = "#"
f.write(f"{comment} This file is generated by PAMHYR, please don't modify\n")
return f
......
......@@ -567,7 +567,7 @@ class GeometryWindow(PamhyrWindow):
def _export_to_file_st(self, filename):
with open(filename, "w+") as f:
f.write("* Exported from Pamhyr2\n")
f.write("# Exported from Pamhyr2\n")
self._export_to_file_st_reach(f, self._reach)
def _export_to_file_st_reach(self, wfile, reach):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment