mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Solver: Mage: Fix comment for ST file header.
This commit is contained in:
1 parent
7ae64d390f
commit
4de04d1af8
2 files changed
+6
-2
No files matched your search
+5
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user