convert paths when saving configuration
This commit is contained in:
parent
4776328731
commit
a9e358eb9e
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,8 @@ public class ImportAppMoteType extends AbstractApplicationMoteType {
|
||||||
|
|
||||||
if (moteClassPath != null) {
|
if (moteClassPath != null) {
|
||||||
Element element = new Element("motepath");
|
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);
|
config.add(element);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue