Assign a variable to expanduser?

instead of me assigning a full path to a script or a folder I would assign it to a variable, but it doesn’t work
any insight would be helpful…


from os.path import expanduser

home = expanduser(“~”) # Set home dir

Key([mod, “shift”], “i”, lazy.spawn(“sxiv -t {}/pictures/wall/”.format(home)), desc=“Launch image viewer”),


This also work
home = expanduser(“~/”)

home = os.path.expanduser('~/')

??? I haven’t got qtile installed yet (reinstalled recently).

@darkrift first hard code the full path, ensure qtile is running without error. then substitute the home.

fantastic, it works

Welcome to the EndeavourOS forum. I hope you enjoy your time here.

Glad your problem is solved.

Pudge

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.