/usr/share/pyshared/screenlets/Plugins.py is in screenlets 0.1.2-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | import sys
import os
sys.path.append(sys.path[0])
PATH = os.path.dirname(__file__) + '/plugins'
def importAPI(module):
"""Imports modules from plugins folder"""
try:
sys.path.append(PATH)
mod = __import__(module)
return mod
except: return None
|