not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
383 B

  1. # -*- coding: utf-8 -*-
  2. import sys
  3. sys.path.insert(1, '..')
  4. from pluginify import pluginify
  5. import os
  6. files = os.listdir('.')
  7. for f in files:
  8. if not os.path.exists(f) or not f.endswith('.rtp'):
  9. continue
  10. with open(f) as fr:
  11. data = fr.read()
  12. fr.close()
  13. del fr
  14. fr = open(f[:-4] + '.json', 'w')
  15. fr.write(pluginify(data))
  16. fr.close()