Browse Source

Fix update_qrc_files.py script

adaptive-webui-19844
Christophe Dumez 13 years ago
parent
commit
94a23cf1d4
  1. 2
      src/searchengine/search.qrc
  2. 13
      src/update_qrc_files.py

2
src/searchengine/search.qrc

@ -25,12 +25,12 @@
<file>nova/engines/piratebay.png</file> <file>nova/engines/piratebay.png</file>
<file>nova/engines/vertor.py</file> <file>nova/engines/vertor.py</file>
<file>nova/engines/btdigg.png</file> <file>nova/engines/btdigg.png</file>
<file>nova3/sgmllib3.py</file>
<file>nova3/nova2.py</file> <file>nova3/nova2.py</file>
<file>nova3/novaprinter.py</file> <file>nova3/novaprinter.py</file>
<file>nova3/socks.py</file> <file>nova3/socks.py</file>
<file>nova3/nova2dl.py</file> <file>nova3/nova2dl.py</file>
<file>nova3/helpers.py</file> <file>nova3/helpers.py</file>
<file>nova3/sgmllib3.py</file>
<file>nova3/engines/vertor.png</file> <file>nova3/engines/vertor.png</file>
<file>nova3/engines/kickasstorrents.png</file> <file>nova3/engines/kickasstorrents.png</file>
<file>nova3/engines/mininova.png</file> <file>nova3/engines/mininova.png</file>

13
src/update_qrc_files.py

@ -47,12 +47,13 @@ lang_file.close()
# update search_engine directory # update search_engine directory
os.chdir('searchengine') os.chdir('searchengine')
search_list = [] search_list = []
for root, dirs, files in os.walk('nova/'): for nova_folder in ['nova/', 'nova3']:
for file in files: for root, dirs, files in os.walk(nova_folder):
if file.startswith("__"): for file in files:
continue if file.startswith("__"):
if splitext(file)[-1] in ('.py', '.png'): continue
search_list.append(join(root, file)) if splitext(file)[-1] in ('.py', '.png'):
search_list.append(join(root, file))
output = '''<!DOCTYPE RCC><RCC version="1.0"> output = '''<!DOCTYPE RCC><RCC version="1.0">
<qresource> <qresource>

Loading…
Cancel
Save