From f97ce0f06a60018ddc8f9cb850b25f5fa925197f Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sat, 8 Sep 2012 22:17:09 +0200 Subject: [PATCH] Add note about how to avoid cyclic imports --- mopidy/mixers/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mopidy/mixers/__init__.py b/mopidy/mixers/__init__.py index 87fbd52f..2067a4b5 100644 --- a/mopidy/mixers/__init__.py +++ b/mopidy/mixers/__init__.py @@ -34,6 +34,9 @@ def create_track(label, initial_volume, min_volume, max_volume, return Track() -# Import all mixers so that they are registered with GStreamer +# Import all mixers so that they are registered with GStreamer. +# +# Keep these imports at the bottom of the file to avoid cyclic import problems +# when mixers use the above code. from mopidy.mixers.auto import AutoAudioMixer from mopidy.mixers.fake import FakeMixer