Save loadedRelativePaths into _config
This commit is contained in:
parent
e99e8d9e10
commit
9934b0d334
@ -268,11 +268,15 @@ class ConfigurationGetter(object):
|
|||||||
|
|
||||||
def _loadRelativeConfiguration(self):
|
def _loadRelativeConfiguration(self):
|
||||||
locations = self.__getRelativeConfigLocations()
|
locations = self.__getRelativeConfigLocations()
|
||||||
|
loadedPaths = []
|
||||||
for location in locations:
|
for location in locations:
|
||||||
for name in constants.CONFIG_NAMES:
|
for name in constants.CONFIG_NAMES:
|
||||||
path = location + os.path.sep + name
|
path = location + os.path.sep + name
|
||||||
|
if(os.path.isfile(path)):
|
||||||
|
loadedPaths.append("'" + os.path.normpath(path) + "'")
|
||||||
self._parseConfigFile(path, createConfig=False)
|
self._parseConfigFile(path, createConfig=False)
|
||||||
self._checkConfig()
|
self._checkConfig()
|
||||||
|
return loadedPaths
|
||||||
|
|
||||||
def getConfiguration(self):
|
def getConfiguration(self):
|
||||||
iniPath = self._getConfigurationFilePath()
|
iniPath = self._getConfigurationFilePath()
|
||||||
@ -285,7 +289,7 @@ class ConfigurationGetter(object):
|
|||||||
self._checkConfig()
|
self._checkConfig()
|
||||||
self._saveConfig(iniPath)
|
self._saveConfig(iniPath)
|
||||||
if(self._config['file']):
|
if(self._config['file']):
|
||||||
self._loadRelativeConfiguration()
|
self._config['loadedRelativePaths'] = self._loadRelativeConfiguration()
|
||||||
if(not self._config['noGui']):
|
if(not self._config['noGui']):
|
||||||
from syncplay.vendor import qt4reactor
|
from syncplay.vendor import qt4reactor
|
||||||
if QCoreApplication.instance() is None:
|
if QCoreApplication.instance() is None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user