File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Common/Constants/include/CommonConstants Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -173,14 +173,14 @@ def main():
173173
174174 # Comment at the beginning of the output
175175 block_begin = "// BEGINNING OF THE GENERATED BLOCK."
176+ # Comment at the end of the output
177+ block_end = "// END OF THE GENERATED BLOCK"
176178 # Preamble with instructions
177179 block_preamble = (
178180 "// DO NOT EDIT THIS BLOCK DIRECTLY!"
179181 f"\n // It has been generated by the { name_script } script."
180182 "\n // For modifications, edit the script and generate this block again."
181183 )
182- # Comment at the end of the output
183- block_end = "// END OF THE GENERATED BLOCK"
184184 # Start of enum declarations of additional particles
185185 enum_o2_head = (
186186 "/// \\ brief Declarations of named PDG codes of particles missing in ROOT PDG_t"
@@ -256,6 +256,7 @@ def main():
256256 )
257257 # print(content_new)
258258
259+ # Overwrite the input file.
259260 try :
260261 with open (path_header , "w" , encoding = "utf-8" ) as file :
261262 file .write (content_new )
You can’t perform that action at this time.
0 commit comments