From 939276d5422ec07b2d24bd5260e6cd3349ca2a48 Mon Sep 17 00:00:00 2001 From: Alfredo Palhares Date: Mon, 4 Mar 2013 14:39:31 +0000 Subject: [PATCH] Properly edit package.path on the example.rc.lua --- example.rc.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/example.rc.lua b/example.rc.lua index cf2ab94..89a4859 100644 --- a/example.rc.lua +++ b/example.rc.lua @@ -1,6 +1,7 @@ -- Coment this out if you dont need to test it this way -local pwd = os.getenv("PWD") -package.path = pwd .. "/init.lua;" .. package.path +-- Remove last dir +local pwd = os.getenv("PWD"):match("(.+)/.-") +package.path = pwd .. "/?.lua;" .. pwd .. "/?/init.lua;" .. package.path -- Standard awesome library local tyranic = require("awesome-tyranical") local gears = require("gears")