Skip to content

Commit

Permalink
Remove lib xml files created by earlier RIDE when migrating
Browse files Browse the repository at this point in the history
  • Loading branch information
yanne committed Sep 2, 2015
1 parent 2e58a86 commit 9087838
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/robotide/preferences/settings.py
Expand Up @@ -15,7 +15,7 @@
import os
import shutil

from robotide.context import SETTINGS_DIRECTORY
from robotide.context import SETTINGS_DIRECTORY, LIBRARY_XML_DIRECTORY
from robotide.preferences.configobj import ConfigObj, ConfigObjError,\
Section, UnreprError
from robotide.preferences import excludes
Expand Down Expand Up @@ -167,6 +167,14 @@ def migrate_from_7_to_8(self, settings):
installed_rf_libs = settings.get('use installed robot libraries', None)
if installed_rf_libs:
del settings['use installed robot libraries']
for name in [
'BuiltIn', 'Collections', 'DateTime', 'Dialogs', 'Easter',
'OperatingSystem', 'Process', 'Remote',
'Screenshot', 'String', 'Telnet', 'XML']:
lib_xml_path = os.path.join(LIBRARY_XML_DIRECTORY,
'{}.xml'.format(name))
if os.path.exists(lib_xml_path):
os.remove(lib_xml_path)
settings[self.SETTINGS_VERSION] = 8

def _write_merged_settings(self, settings, path):
Expand Down

0 comments on commit 9087838

Please sign in to comment.