file paths WIP
This commit is contained in:
parent
6dbc9804fd
commit
c7d92466b5
|
@ -13,15 +13,16 @@ avail = ""
|
|||
|
||||
# Use config.yml file to allow for compatibility with
|
||||
# most terminal emulators possible & custom icon
|
||||
confPath = "~/.config/systrayUpdater/systrayUpdater.yml"
|
||||
conf = path.expanduser(confPath)
|
||||
with open(conf) as f:
|
||||
#confPath = "~/.config/systrayUpdater/systrayUpdater.yml"
|
||||
#conf = path.expanduser(confPath)
|
||||
with open(path.expanduser("~/.config/systrayUpdater/systrayUpdater.yml")) as f:
|
||||
conf = yaml.load(f, yaml.FullLoader)
|
||||
term = str(conf['terminal'])
|
||||
opt = str(conf['option'])
|
||||
wait = int(conf['timer']) * 60000
|
||||
icnPath = "~/.config/systrayUpdater/" + str(conf['icon'])
|
||||
icn = path.expanduser(icnPath)
|
||||
#icnPath = "~/.config/systrayUpdater/" + str(conf['icon'])
|
||||
#icn = path.expanduser(icnPath)
|
||||
icn = path.expanduser("~/.config/systrayUpdater/") + str(conf['icon'])
|
||||
f.close()
|
||||
|
||||
# Run checkupdates command
|
||||
|
|
Loading…
Reference in New Issue