diff options
author | David Runge <dave@sleepmap.de> | 2016-07-10 16:47:45 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2016-07-10 16:47:45 +0200 |
commit | 4b4d19ebbdf6e5737931a18315666c505b10c4a2 (patch) | |
tree | 786a9bce23ce218b4d0832eae7b198d3c32a5e8e | |
parent | b9e2e454918faad91b8aea718d4dcd42b953e8d7 (diff) | |
download | bowelyzer-4b4d19ebbdf6e5737931a18315666c505b10c4a2.tar.gz bowelyzer-4b4d19ebbdf6e5737931a18315666c505b10c4a2.tar.bz2 bowelyzer-4b4d19ebbdf6e5737931a18315666c505b10c4a2.tar.xz bowelyzer-4b4d19ebbdf6e5737931a18315666c505b10c4a2.zip |
classes/BowelyzerConfig.sc: Fixing statements regarding configFilePath and path to be more exclusive. Removing unused postln.
-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, |