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.
 
 
 
 
 

19 lines
383 B

# -*- coding: utf-8 -*-
import sys
sys.path.insert(1, '..')
from pluginify import pluginify
import os
files = os.listdir('.')
for f in files:
if not os.path.exists(f) or not f.endswith('.rtp'):
continue
with open(f) as fr:
data = fr.read()
fr.close()
del fr
fr = open(f[:-4] + '.json', 'w')
fr.write(pluginify(data))
fr.close()