From 162a9ef52264d3ce518a7803e2ace57508972093 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Tue, 26 Jan 2010 17:34:56 +0000 Subject: [PATCH] Fixed startup for console_script --- setup.py | 2 +- tvorganise.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 602f772..227078a 100755 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ license='GPLv2', py_modules = [ 'tvorganise'], entry_points = { 'console_scripts':[ - 'tvorganise = tvorganise:TvOrganiser.main' + 'tvorganise = tvorganise:main' ] }, diff --git a/tvorganise.py b/tvorganise.py index bd1edbe..6a336b1 100755 --- a/tvorganise.py +++ b/tvorganise.py @@ -210,3 +210,7 @@ class TvOrganiser(): self._logger.info("[*] ..done") else: self._logger.warning("Skipping file: %s" % filename) + +def main(): + t = TvOrganiser() + t.main()