[modules/pacman] Slightly adapt the path calculation logic
This commit is contained in:
parent
8ceeac84c0
commit
8d53b2bedd
1 changed files with 2 additions and 4 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue