From 94a23cf1d4c54614da5ab16555719ba337c1d092 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 24 Sep 2011 11:15:03 +0300 Subject: [PATCH] Fix update_qrc_files.py script --- src/searchengine/search.qrc | 4 ++-- src/update_qrc_files.py | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/searchengine/search.qrc b/src/searchengine/search.qrc index b7f2ba886..5b8af7f32 100644 --- a/src/searchengine/search.qrc +++ b/src/searchengine/search.qrc @@ -25,12 +25,12 @@ nova/engines/piratebay.png nova/engines/vertor.py nova/engines/btdigg.png + nova3/sgmllib3.py nova3/nova2.py nova3/novaprinter.py nova3/socks.py nova3/nova2dl.py nova3/helpers.py - nova3/sgmllib3.py nova3/engines/vertor.png nova3/engines/kickasstorrents.png nova3/engines/mininova.png @@ -52,4 +52,4 @@ nova3/engines/vertor.py nova3/engines/btdigg.png - + \ No newline at end of file diff --git a/src/update_qrc_files.py b/src/update_qrc_files.py index c4ec090be..813ff1a05 100755 --- a/src/update_qrc_files.py +++ b/src/update_qrc_files.py @@ -47,12 +47,13 @@ lang_file.close() # update search_engine directory os.chdir('searchengine') search_list = [] -for root, dirs, files in os.walk('nova/'): - for file in files: - if file.startswith("__"): - continue - if splitext(file)[-1] in ('.py', '.png'): - search_list.append(join(root, file)) +for nova_folder in ['nova/', 'nova3']: + for root, dirs, files in os.walk(nova_folder): + for file in files: + if file.startswith("__"): + continue + if splitext(file)[-1] in ('.py', '.png'): + search_list.append(join(root, file)) output = '''