convert paths when saving configuration

This commit is contained in:
fros4943 2010-02-03 16:26:36 +00:00
parent 4776328731
commit a9e358eb9e

View file

@ -77,7 +77,8 @@ public class ImportAppMoteType extends AbstractApplicationMoteType {
if (moteClassPath != null) {
Element element = new Element("motepath");
element.setText(simulation.getGUI().createPortablePath(moteClassPath).getPath());
File file = simulation.getGUI().createPortablePath(moteClassPath);
element.setText(file.getPath().replaceAll("\\\\", "/"));
config.add(element);
}