From 464e14722333bac1a49a3811d283ef253194a1c5 Mon Sep 17 00:00:00 2001 From: "beville@gmail.com" Date: Fri, 15 Feb 2013 00:23:54 +0000 Subject: [PATCH] back to "ctmain" git-svn-id: http://comictagger.googlecode.com/svn/trunk@508 6c5673fe-1810-88d6-992b-cd32ca31540c --- comictagger.py | 5 +++-- comictaggerlib/main.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/comictagger.py b/comictagger.py index e864c24..b3bdb07 100755 --- a/comictagger.py +++ b/comictagger.py @@ -1,4 +1,5 @@ #!/usr/bin/python -from comictaggerlib.main import main +from comictaggerlib.main import ctmain -main() +if __name__ == '__main__': + ctmain() \ No newline at end of file diff --git a/comictaggerlib/main.py b/comictaggerlib/main.py index ca4b954..936cd3f 100755 --- a/comictaggerlib/main.py +++ b/comictaggerlib/main.py @@ -37,7 +37,7 @@ except ImportError as e: qt_available = False #--------------------------------------- -def main(): +def ctmain(): utils.fix_output_encoding() settings = ComicTaggerSettings()