File: advanced.py

package info (click to toggle)
python-pluginbase 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 268 kB
  • sloc: python: 537; makefile: 118
file content (11 lines) | stat: -rw-r--r-- 192 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
from pluginbase import get_plugin_source


def get_app():
    rv = get_plugin_source(stacklevel=1)
    if rv is not None:
        return rv.app


def get_app_name():
    return get_app().name