From 3417abfe64faf48b25c7ba30270d38969f0b4c62 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Sun, 28 Apr 2013 23:21:29 +0200 Subject: [PATCH] config: Use byte paths in convert code --- mopidy/config/convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mopidy/config/convert.py b/mopidy/config/convert.py index f292e302..6cb20fcd 100644 --- a/mopidy/config/convert.py +++ b/mopidy/config/convert.py @@ -9,7 +9,7 @@ from mopidy.utils import path def load(): - settings_file = path.expand_path('$XDG_CONFIG_DIR/mopidy/settings.py') + settings_file = path.expand_path(b'$XDG_CONFIG_DIR/mopidy/settings.py') print 'Checking %s' % settings_file setting_globals = {} @@ -109,7 +109,7 @@ def main(): print b'Converted config:\n' print config_lib.format(config, extensions) - conf_file = path.expand_path('$XDG_CONFIG_DIR/mopidy/mopidy.conf') + conf_file = path.expand_path(b'$XDG_CONFIG_DIR/mopidy/mopidy.conf') if os.path.exists(conf_file): print '%s exists, exiting.' % conf_file sys.exit(1)