4
1

sugarcube_postCompile.py 302 B

123456789
  1. #!/usr/bin/env python3
  2. import fileinput
  3. for line in fileinput.input("glife.html", inplace=True, encoding="utf-8"):
  4. #print('{} {}'.format(fileinput.filelineno(), line), end='')
  5. print(line, end='')
  6. if line.strip() == '<head>':
  7. print('<meta name="rating" content="adult" />', end='')