diff options
-rw-r--r-- | classes/BowelyzerConfig.sc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/classes/BowelyzerConfig.sc b/classes/BowelyzerConfig.sc index 3a3ebe6..7f49865 100644 --- a/classes/BowelyzerConfig.sc +++ b/classes/BowelyzerConfig.sc @@ -240,10 +240,8 @@ BowelyzerConfig{ path, overwriteConfigFilePath = false, writeFinished = false; - configFilePath.postln; - fileName.postln; if(fileName.isNil, { - if(configFilePath.notNil, { + if(configFilePath.notNil && (configFilePath != ""), { path = configFilePath; },{ "No configuration file defined!".error; @@ -252,8 +250,8 @@ BowelyzerConfig{ path = fileName; overwriteConfigFilePath = true; }); - if(path != "",{ - path.postln; + if(path.notNil && (path != ""), { + ("Writing configuration to file: "++path).postln; try{ configFile = File.use( path.asString, |