mirror of https://gitlab.com/pamhyr/pamhyr2
Solver: Mage: Fix comment for ST file header.
parent
7ae64d390f
commit
4de04d1af8
|
|
@ -38,7 +38,11 @@ def mage_file_open(filepath, mode):
|
||||||
|
|
||||||
if "w" in mode:
|
if "w" in mode:
|
||||||
# Write header
|
# 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
|
return f
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -567,7 +567,7 @@ class GeometryWindow(PamhyrWindow):
|
||||||
|
|
||||||
def _export_to_file_st(self, filename):
|
def _export_to_file_st(self, filename):
|
||||||
with open(filename, "w+") as f:
|
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)
|
self._export_to_file_st_reach(f, self._reach)
|
||||||
|
|
||||||
def _export_to_file_st_reach(self, wfile, reach):
|
def _export_to_file_st_reach(self, wfile, reach):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue