From cfd58ebc38e0a2f7e9352fdcb58f483c68de5fd8 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Tue, 17 Jun 2025 19:53:54 +0200 Subject: [PATCH] Fix entry point --- setup.py | 2 +- tibudecrypt.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index a4d2fe1..58703a6 100644 --- a/setup.py +++ b/setup.py @@ -83,7 +83,7 @@ # pip to create the appropriate form of executable for the target platform. entry_points={ 'console_scripts': [ - 'tibudecrypt.py=tibudecrypt:_main', + 'tibudecrypt=tibudecrypt:run', ], }, ) diff --git a/tibudecrypt.py b/tibudecrypt.py index 62245b2..04ce10e 100755 --- a/tibudecrypt.py +++ b/tibudecrypt.py @@ -255,6 +255,9 @@ def main(args): print(SUCCESS_MESSAGE.format(decrypted_filename=decrypted_filename)) -if __name__ == '__main__': +def run(): ARGS = docopt.docopt(__doc__, version=VERSION) sys.exit(main(ARGS)) + +if __name__ == '__main__': + run()