diff --git a/docs/release-notes.md b/docs/release-notes.md index e49be22..ad86ae8 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,3 +1,9 @@ +# 2014 02 11 + +## Version 2.0.4 + +Various bug fixes, enhanced classroom module and improved error logging on startup. + # 2014 01 17 Added support for communication with Arduino and other devices which diff --git a/src/main/js/lib/scriptcraft.js b/src/main/js/lib/scriptcraft.js index a3a7ec0..8d57efa 100644 --- a/src/main/js/lib/scriptcraft.js +++ b/src/main/js/lib/scriptcraft.js @@ -515,7 +515,10 @@ function __onEnable ( __engine, __plugin, __script ) /* now that load is defined, use it to load a global config object */ - var config = _load( new File(jsPluginsRootDir, 'data/global-config.json' ) ); + var configFile = new File(jsPluginsRootDir, 'data/'); + configFile.mkdirs(); + configFile = new File(configFile,'global-config.json'); + var config = _load( configFile ); if ( !config ) { config = { verbose: false }; }