From 7d3c1d2d322df9050259bdbd3c0281c37d85d481 Mon Sep 17 00:00:00 2001 From: Chad Yates Date: Tue, 4 Apr 2023 21:10:42 -0700 Subject: [PATCH] Add entry points for launching from a debugger. --- src/dali/plugin/country/jp.py | 5 +++++ src/dali/plugin/country/us.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/dali/plugin/country/jp.py b/src/dali/plugin/country/jp.py index 4712cca6..86045812 100644 --- a/src/dali/plugin/country/jp.py +++ b/src/dali/plugin/country/jp.py @@ -21,3 +21,8 @@ # JP-specific entry point def dali_entry() -> None: dali_main(JP()) + +# This traditional entry point is used for debugging purposes only, dali_entry() +# is normally called through the use of an installed console script in setup.py. +if __name__ == '__main__': + dali_entry() diff --git a/src/dali/plugin/country/us.py b/src/dali/plugin/country/us.py index 8fd497bb..658df9cb 100644 --- a/src/dali/plugin/country/us.py +++ b/src/dali/plugin/country/us.py @@ -21,3 +21,8 @@ # US-specific entry point def dali_entry() -> None: dali_main(US()) + +# This traditional entry point is used for debugging purposes only, dali_entry() +# is normally called through the use of an installed console script in setup.py. +if __name__ == '__main__': + dali_entry()