Skip to content

Commit

Permalink
Fix package.paths under userruntime w/ unexpanded tilde
Browse files Browse the repository at this point in the history
Lua doesn't automatically expand tildes to `$HOME`, as this code seems
to assume.

Fix #3518
  • Loading branch information
habibalamin committed Oct 11, 2024
1 parent 08cb813 commit 80562d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hammerspoon/setup.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local modpath, frameworkspath, prettypath, fullpath, configdir, docstringspath, hasinitfile, autoload_extensions = ...

local userruntime = "~/.local/share/hammerspoon/site"
local userruntime = os.getenv("HOME") .. "/.local/share/hammerspoon/site"

local paths = {
configdir .. "/?.lua",
Expand Down

0 comments on commit 80562d7

Please sign in to comment.