mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
keybind path now works with ~
This commit is contained in:
parent
287216dac2
commit
10a1eb5dd1
1 changed files with 2 additions and 2 deletions
|
|
@ -35,9 +35,9 @@ class Section(dict):
|
|||
|
||||
|
||||
def read_content(path: str) -> str:
|
||||
if (not os.access(os_expandvars(path), os.R_OK)):
|
||||
if (not os.access(os.path.expanduser(os.path.expandvars(path)), os.R_OK)):
|
||||
return ("error")
|
||||
with open(os_expandvars(path), "r") as file:
|
||||
with open(os.path.expanduser(os.path.expandvars(path)), "r") as file:
|
||||
return file.read()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue