aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Richter <vrld@vrld.org>2012-04-10 12:40:17 +0200
committerMatthias Richter <vrld@vrld.org>2012-04-10 12:40:17 +0200
commitff9caa39ca98c3057b9ec689cef9be094c293ba6 (patch)
tree90fec45f61cc39f26b4730d3dc3a875f6cbc8691
parent2fd060184eafdb977dac108deda1397fa8edf397 (diff)
downloadQuickie-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.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index e43305b..c122ee5 100644
--- a/init.lua
+++ b/init.lua
@@ -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'),