Index: pluginconf.py ================================================================== --- pluginconf.py +++ pluginconf.py @@ -83,14 +83,14 @@ # ‾‾‾‾‾‾‾‾‾‾‾ log_WARN = lambda *x:None log_ERR = lambda *x:None # File lookup relation for get_data(), should name a top-level module/package -module_base = "pluginconf" +module_base = "config" # Package names or base paths for module_list() and plugin_meta() lookups -plugin_base = ["plugins"] +plugin_base = ["channels"] # [conf.share+"/channels", conf.dir+"/plugins"]) @@ -109,11 +109,11 @@ if decode: return bin.decode("utf-8", errors='ignore') else: return str(bin) except: - log_WARN("get_data() didn't find:", fn) + log_WARN("get_data() didn't find:", fn, "in", file_base) # Plugin name lookup # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ @@ -153,11 +153,11 @@ # or top-level modules # # frame= extract comment header of caller # (default) # -def plugin_meta(fn=None, src=None, module=None, frame=1, extra_base=[module_base]): +def plugin_meta(fn=None, src=None, module=None, frame=1, extra_base=[]): # Try via pkgutil first, # find any plugins.* modules, or main packages if module: fn = module @@ -210,10 +210,11 @@ "fn": fn, "api": "python", "type": "module", "category": None, "priority": None, + "version": "0", "title": fn, "description": "no description", "config": [], "doc": "" }