Properly edit package.path on the example.rc.lua

This commit is contained in:
Alfredo Palhares 2013-03-04 14:39:31 +00:00
parent a9fd39153c
commit 939276d542
1 changed files with 3 additions and 2 deletions

View File

@ -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")