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()