Fix issue with loading relative path containing utf-8 character

This commit is contained in:
Et0h 2016-07-02 23:16:51 +01:00
parent 2653042327
commit d20c20aae4
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
version = '1.4.0'
milestone = 'Yoitsu'
release_number = '26'
release_number = '27'
projectURL = 'http://syncplay.pl/'

View File

@ -378,7 +378,7 @@ class ConfigurationGetter(object):
for name in constants.CONFIG_NAMES:
path = location + os.path.sep + name
if os.path.isfile(path) and (os.name == 'nt' or path != os.path.join(os.getenv('HOME', '.'), constants.DEFAULT_CONFIG_NAME_LINUX)):
loadedPaths.append("'" + os.path.normpath(path).decode('utf-8') + "'")
loadedPaths.append(u"'{}'".format(os.path.normpath(path)))
self._parseConfigFile(path, createConfig=False)
self._checkConfig()
return loadedPaths