[modules/pacman] Slightly adapt the path calculation logic

This commit is contained in:
Tobi-wan Kenobi 2016-11-25 17:10:02 +01:00
parent 8ceeac84c0
commit 8d53b2bedd

View file

@ -11,12 +11,10 @@ class Module(bumblebee.module.Module):
self._count = 0 self._count = 0
def widgets(self): def widgets(self):
#path = os.path.dirname(os.path.abspath(__file__)) path = os.path.dirname(os.path.abspath(__file__))
path = os.path.realpath(__file__)
#path = "/home/pseudonick/bumblebee-status/bumblebee/"
if self._count == 0: if self._count == 0:
self._out = "?/?/?/?" self._out = "?/?/?/?"
process = subprocess.Popen([path[:-9]+"../bin/customupdates"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) process = subprocess.Popen([ "{}/../../bin/customupdates".format(path) ], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
self._query, self._error = process.communicate() self._query, self._error = process.communicate()