mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 08:43:08 -07:00
- Merged custom-search branch. New search plugins management system
This commit is contained in:
parent
b7fd7d9837
commit
ff4ab915a2
28 changed files with 1427 additions and 934 deletions
|
@ -20,6 +20,27 @@ lang_file = open('lang.qrc', 'w')
|
|||
lang_file.write(output)
|
||||
lang_file.close()
|
||||
|
||||
# update search_engine directory
|
||||
search_list = []
|
||||
for root, dirs, files in os.walk('search_engine'):
|
||||
for file in files:
|
||||
if file.startswith("__"):
|
||||
continue
|
||||
if splitext(file)[-1] in ('.py', '.png'):
|
||||
search_list.append(join(root, file))
|
||||
|
||||
output = '''<!DOCTYPE RCC><RCC version="1.0">
|
||||
<qresource>
|
||||
'''
|
||||
for file in search_list:
|
||||
output += ' <file>%s</file>'%(file)
|
||||
output += os.linesep
|
||||
output += '''</qresource>
|
||||
</RCC>'''
|
||||
search_file = open('search.qrc', 'w')
|
||||
search_file.write(output)
|
||||
search_file.close()
|
||||
|
||||
# update icons files directory
|
||||
icons_list = []
|
||||
for root, dirs, files in os.walk('Icons'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue