mirror of
https://github.com/Mikaela/Limnoria-doc.git
synced 2024-12-24 12:12:37 +01:00
Edit the script to generate the doc for unofficial plugins.
This commit is contained in:
parent
1cb25b34a0
commit
e71865d02f
@ -18,14 +18,16 @@ class ConfigPlugin(Config.Config):
|
||||
# Commands instances are converted into SynchronizedAndFirewalled
|
||||
from supybot.callbacks import SynchronizedAndFirewalled as Commands
|
||||
|
||||
sys.path.append('/home/progval/workspace/Supybot/Limnoria/plugins')
|
||||
sys.path.append('/home/progval/workspace/Supybot/Supybot-plugins')
|
||||
|
||||
def main():
|
||||
pluginNames = sys.argv[1:]
|
||||
for pluginName in pluginNames:
|
||||
supybot = __import__('supybot.plugins.%s.config' % pluginName)
|
||||
pluginConfig = getattr(getattr(supybot.plugins, pluginName).config,
|
||||
pluginName) # combo!
|
||||
#supybot = __import__('supybot.plugins.%s.config' % pluginName)
|
||||
supybot = __import__('%s.config' % pluginName)
|
||||
#pluginConfig = getattr(getattr(supybot.plugins, pluginName).config,
|
||||
# pluginName) # combo!
|
||||
pluginConfig = getattr(supybot.config, pluginName)
|
||||
filename = 'use/plugins/%s.rst' % pluginName.lower()
|
||||
configRoot = 'supybot.plugins.%s' % pluginName
|
||||
with open(filename, 'a') as fd:
|
||||
|
@ -11,11 +11,13 @@ from supybot.callbacks import SynchronizedAndFirewalled as Commands
|
||||
|
||||
validCommandName = re.compile('^[a-z]+$')
|
||||
|
||||
sys.path.append('/home/progval/workspace/Supybot/Supybot-plugins')
|
||||
|
||||
def main():
|
||||
pluginNames = sys.argv[1:]
|
||||
for pluginName in pluginNames:
|
||||
supybot = __import__('supybot.plugins.%s.plugin' % pluginName)
|
||||
PluginClass = getattr(supybot.plugins, pluginName).plugin.Class
|
||||
supybot = __import__('%s.plugin' % pluginName)
|
||||
PluginClass = supybot.plugin.Class
|
||||
filename = 'use/plugins/%s.rst' % pluginName.lower()
|
||||
try:
|
||||
os.unlink(filename)
|
||||
|
Loading…
Reference in New Issue
Block a user