From 99f26dd41cc0810c207b6838e0ad19ee34004c34 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Wed, 3 Apr 2013 00:39:57 +0200 Subject: [PATCH] Revert "main: Remove sys.path modification" This reverts commit c00a49ebe1ac1d1e26b7f6ab855eabf27163acde. --- mopidy/__main__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mopidy/__main__.py b/mopidy/__main__.py index 6c1eb2ad..a5613d33 100644 --- a/mopidy/__main__.py +++ b/mopidy/__main__.py @@ -22,6 +22,12 @@ mopidy_args = sys.argv[1:] sys.argv[1:] = [] +# Add ../ to the path so we can run Mopidy from a Git checkout without +# installing it on the system. +sys.path.insert( + 0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../'))) + + from mopidy import exceptions, settings from mopidy.audio import Audio from mopidy.config import default_config, config_schemas