From 76520f33bced1f7f94a2052f24a6cb748f0693cd Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 24 Dec 2015 18:39:51 +0300 Subject: [PATCH] Import many INPX Add the script to setup.py. --- scripts/ml-import.py | 3 ++- setup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/ml-import.py b/scripts/ml-import.py index 0273ff6..5275d0b 100755 --- a/scripts/ml-import.py +++ b/scripts/ml-import.py @@ -10,5 +10,6 @@ if __name__ == '__main__': sys.exit("Usage: %s file.inpx" % sys.argv[0]) init_db() import_data() - import_inpx(sys.argv[1]) + for inpx in sys.argv[1:]: + import_inpx(inpx) update_counters() diff --git a/setup.py b/setup.py index 46541d9..7d293ce 100755 --- a/setup.py +++ b/setup.py @@ -43,6 +43,6 @@ setup(name='m_librarian', ], packages=['m_librarian'], package_data={'m_librarian': ['data/*.txt', 'data/genres_*.glst']}, - scripts=['scripts/ml-initdb.py'], + scripts=['scripts/ml-import.py', 'scripts/ml-initdb.py'], requires=['SQLObject'], ) -- 2.39.5