home-assistant-libs / pychromecast

Library for Python 3 to communicate with the Google Chromecast.
MIT License
2.51k stars 378 forks source link

Deduplicate log setup in examples #841

Closed emontnemery closed 4 months ago

emontnemery commented 4 months ago

To be able to do local imports in the example scripts, examples is now a package and the example scripts need to be invoked with the -m flag, e.g.:

python3 -m examples.youtube_example --cast "Kitchen display" --show-debug

This is somewhat unwanted, but there doesn't seem to be any non-hacky ways around it.