Properly edit package.path on the example.rc.lua
This commit is contained in:
parent
a9fd39153c
commit
939276d542
|
@ -1,6 +1,7 @@
|
||||||
-- Coment this out if you dont need to test it this way
|
-- Coment this out if you dont need to test it this way
|
||||||
local pwd = os.getenv("PWD")
|
-- Remove last dir
|
||||||
package.path = pwd .. "/init.lua;" .. package.path
|
local pwd = os.getenv("PWD"):match("(.+)/.-")
|
||||||
|
package.path = pwd .. "/?.lua;" .. pwd .. "/?/init.lua;" .. package.path
|
||||||
-- Standard awesome library
|
-- Standard awesome library
|
||||||
local tyranic = require("awesome-tyranical")
|
local tyranic = require("awesome-tyranical")
|
||||||
local gears = require("gears")
|
local gears = require("gears")
|
||||||
|
|
Loading…
Reference in New Issue