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