[doc] update API docs
This commit is contained in:
parent
8ca036bc4c
commit
b4f8870a95
3 changed files with 72 additions and 2 deletions
|
@ -8,16 +8,20 @@ def discover():
|
|||
)
|
||||
sys.path.append(libdir)
|
||||
|
||||
|
||||
def utility(name):
|
||||
current_path = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
for path in [
|
||||
os.path.join(current_path, "..", "bin"),
|
||||
os.path.join(current_path, "..", "..", "..", "..", "share", "bumblebee-status", "utility"),
|
||||
os.path.join(
|
||||
current_path, "..", "..", "..", "..", "share", "bumblebee-status", "utility"
|
||||
),
|
||||
"/usr/share/bumblebee-status/bin/",
|
||||
]:
|
||||
if os.path.exists(os.path.abspath(os.path.join(path, name))):
|
||||
return os.path.abspath(os.path.join(path, name))
|
||||
raise Exception("{} not found".format(name))
|
||||
|
||||
|
||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue