minor fix on locating config file
This commit is contained in:
parent
a547b2259e
commit
c96eb826d7
|
@ -3117,6 +3117,10 @@ public class GUI extends Observable {
|
||||||
public Simulation loadSimulationConfig(File file, boolean quick)
|
public Simulation loadSimulationConfig(File file, boolean quick)
|
||||||
throws UnsatisfiedLinkError, SimulationCreationException {
|
throws UnsatisfiedLinkError, SimulationCreationException {
|
||||||
this.currentConfigFile = file; /* Used to generate config relative paths */
|
this.currentConfigFile = file; /* Used to generate config relative paths */
|
||||||
|
try {
|
||||||
|
this.currentConfigFile = this.currentConfigFile.getCanonicalFile();
|
||||||
|
} catch (IOException e) {
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
SAXBuilder builder = new SAXBuilder();
|
SAXBuilder builder = new SAXBuilder();
|
||||||
|
@ -3236,6 +3240,10 @@ public class GUI extends Observable {
|
||||||
*/
|
*/
|
||||||
public void saveSimulationConfig(File file) {
|
public void saveSimulationConfig(File file) {
|
||||||
this.currentConfigFile = file; /* Used to generate config relative paths */
|
this.currentConfigFile = file; /* Used to generate config relative paths */
|
||||||
|
try {
|
||||||
|
this.currentConfigFile = this.currentConfigFile.getCanonicalFile();
|
||||||
|
} catch (IOException e) {
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Create and write to document
|
// Create and write to document
|
||||||
|
|
Loading…
Reference in a new issue