Skip to content

Commit

Permalink
Merge pull request #643 from tm-kn/fix-binary-incorrect-script-path
Browse files Browse the repository at this point in the history
Fix incorrect script path in `pyproject.toml`
  • Loading branch information
robbrad authored Apr 27, 2024
2 parents dff3ec9 + fe738d7 commit ec4c9af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pyhamcrest = "*"


[tool.poetry.scripts]
uk_bin_collection = "uk_bin_collection.uk_bin_collection:collect_data"
uk_bin_collection = "uk_bin_collection.uk_bin_collection.collect_data:run"

[tool.dephell.main]
versioning = "semver"
Expand Down
7 changes: 6 additions & 1 deletion uk_bin_collection/uk_bin_collection/collect_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,13 @@ def client_code(self, get_bin_data_class, address_url, **kwargs) -> None:
return get_bin_data_class.template_method(address_url, **kwargs)


if __name__ == "__main__":
def run():
global _LOGGER
_LOGGER = setup_logging(LOGGING_CONFIG, None)
app = UKBinCollectionApp()
app.set_args(sys.argv[1:])
print(app.run())


if __name__ == "__main__":
run()

0 comments on commit ec4c9af

Please sign in to comment.