def test_config_man(): config.setConfigFolder("./") assert config.getConfigFolder() == "./" config.setProperty("test-property", "test-value") assert config.getProperty("test-property") == "test-value" config.deleteConfigFile()
def accept(self): print "Saving configuration changes..." workFolder = self.directoryEdit.text().encode("utf-8") print "Setting workspace location:", workFolder config.writeWorkspaceLocation(workFolder) musicLibraryFolder = self.libraryDirectoryEdit.text().encode("utf-8") print "Setting music library location:", musicLibraryFolder config.setProperty(config.Properties.MUSIC_LIBRARY, musicLibraryFolder) print "Settings were changed." APP.mainWin.showDefaultMusicView() APP.updatePlayer() return self.done(0)