Fix issue with loading relative path containing utf-8 character
This commit is contained in:
parent
2653042327
commit
d20c20aae4
@ -1,4 +1,4 @@
|
||||
version = '1.4.0'
|
||||
milestone = 'Yoitsu'
|
||||
release_number = '26'
|
||||
release_number = '27'
|
||||
projectURL = 'http://syncplay.pl/'
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user