From 19c4f1c09f4273661bec639cba80a090e368d7e4 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Fri, 20 Aug 2010 16:21:07 +0200 Subject: [PATCH] Readd main() method, to not break bin/mopidy --- mopidy/__main__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mopidy/__main__.py b/mopidy/__main__.py index 8aee976b..20e78f5a 100644 --- a/mopidy/__main__.py +++ b/mopidy/__main__.py @@ -8,7 +8,10 @@ sys.path.insert(0, from mopidy.core import CoreProcess -if __name__ == '__main__': +def main(): # Explictly call run() instead of start(), since we don't need to start # another process. CoreProcess().run() + +if __name__ == '__main__': + main()