diff options
author | Matthias Richter <vrld@vrld.org> | 2012-04-10 12:40:17 +0200 |
---|---|---|
committer | Matthias Richter <vrld@vrld.org> | 2012-04-10 12:40:17 +0200 |
commit | ff9caa39ca98c3057b9ec689cef9be094c293ba6 (patch) | |
tree | 90fec45f61cc39f26b4730d3dc3a875f6cbc8691 | |
parent | 2fd060184eafdb977dac108deda1397fa8edf397 (diff) | |
download | Quickie-ff9caa39ca98c3057b9ec689cef9be094c293ba6.tar.gz Quickie-ff9caa39ca98c3057b9ec689cef9be094c293ba6.tar.bz2 Quickie-ff9caa39ca98c3057b9ec689cef9be094c293ba6.tar.xz Quickie-ff9caa39ca98c3057b9ec689cef9be094c293ba6.zip |
Fix issue #2: init doesn't grab BASE correctly.
-rw-r--r-- | init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -24,7 +24,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]]-- -local BASE = ((...):match('(.+)%.') or ...) .. '.' +local BASE = (...) .. '.' +assert(not BASE:match('%.init%.$'), "Invalid require path `"..(...).."' (drop the `.init').") return { core = require(BASE .. 'core'), |