minor fixes on src gen scripts

This commit is contained in:
Ebrahim Byagowi committed 2020-06-02 19:18:35 +04:30
1 parent 6058ede3ae
commit 9737170b6f
2 files changed
+5 -1

No files matched your search

+2
View File
@@ -4,6 +4,8 @@
import os, re, sys
os.chdir (os.path.dirname (__file__))
if len (sys.argv) < 3:
sys.exit (__doc__)
+3 -1
View File
@@ -4,6 +4,8 @@
import os, re, sys
os.chdir (os.path.dirname (__file__))
if len (sys.argv) < 4:
sys.exit(__doc__)
@@ -26,4 +28,4 @@ with open (input, "r", encoding='utf-8') as input_file:
# write only if is changed
if generated != current:
with open (output, "wb") as output_file:
output_file.write ()
output_file.write (generated)