From b6974d49c7a9374b2b7ed92698692166eef321c2 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Mon, 14 Mar 2016 10:48:09 +0100 Subject: [PATCH] lister: actually run something when the module is loaded --- swh/lister/github/lister.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/swh/lister/github/lister.py b/swh/lister/github/lister.py index a0151ab..b11615c 100644 --- a/swh/lister/github/lister.py +++ b/swh/lister/github/lister.py @@ -50,3 +50,6 @@ def run_from_queue(): finally: req_queue.dump_to_file(queue, queue_file) + +if __name__ == '__main__': + run_from_queue()