Skip to content

Commit

Permalink
Add entry points for launching from a debugger.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiates committed Apr 5, 2023
1 parent 7b4d3fd commit 7d3c1d2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dali/plugin/country/jp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
5 changes: 5 additions & 0 deletions src/dali/plugin/country/us.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 7d3c1d2

Please sign in to comment.