Commit 3a24d883 authored by Link Mauve's avatar Link Mauve
Browse files

Make plugins import from the absolute poezio package.

parent a210303b
......@@ -51,8 +51,8 @@ For affiliations
"""
from plugin import BasePlugin
from tabs import MucTab
from poezio.plugin import BasePlugin
from poezio.tabs import MucTab
class Plugin(BasePlugin):
"""
......
......@@ -64,8 +64,8 @@ Example of the syntax:
"""
from plugin import BasePlugin
from common import shell_split
from poezio.plugin import BasePlugin
from poezio.common import shell_split
class Plugin(BasePlugin):
......
......@@ -16,8 +16,8 @@ Command
"""
from plugin import BasePlugin
from tabs import MucTab
from poezio.plugin import BasePlugin
from poezio.tabs import MucTab
class Plugin(BasePlugin):
def init(self):
......
......@@ -45,7 +45,7 @@ This variant is useful if you don’t want to care about regular expressions
"""
from plugin import BasePlugin
from poezio.plugin import BasePlugin
import re
allowed_separators = '/#!:;'
......
......@@ -22,8 +22,8 @@ Configuration options
The time during which the file should stay in cache on the receiving side.
"""
from plugin import BasePlugin
import tabs
from poezio.plugin import BasePlugin
from poezio import tabs
from pathlib import Path
from glob import glob
......
"""
Once loaded, everything you will send will be IN CAPITAL LETTERS.
"""
from plugin import BasePlugin
import xhtml
from poezio.plugin import BasePlugin
from poezio import xhtml
class Plugin(BasePlugin):
def init(self):
......
......@@ -2,7 +2,7 @@
This plugin will set the title of your terminal to the name of the current tab.
"""
from plugin import BasePlugin
from poezio.plugin import BasePlugin
import sys
......
......@@ -11,9 +11,9 @@ Commands
Close all tabs except the roster and MUC tabs.
"""
from plugin import BasePlugin
import tabs
from decorators import command_args_parser
from poezio.plugin import BasePlugin
from poezio import tabs
from poezio.decorators import command_args_parser
class Plugin(BasePlugin):
......
......@@ -20,8 +20,8 @@ Commands
.. _CSI: https://xmpp.org/extensions/xep-0352.html
"""
from plugin import BasePlugin
import tabs
from poezio.plugin import BasePlugin
from poezio import tabs
class Plugin(BasePlugin):
def init(self):
......
......@@ -17,7 +17,7 @@ Configuration options
The percentage of the time the plugin will activate (randomly). 100 for every message, <= 0 for never.
"""
from plugin import BasePlugin
from poezio.plugin import BasePlugin
from random import choice, randint
import re
......
......@@ -5,10 +5,10 @@ date has changed.
"""
from gettext import gettext as _
from plugin import BasePlugin
from poezio.plugin import BasePlugin
import datetime
import tabs
import timed_events
from poezio import tabs
from poezio import timed_events
class Plugin(BasePlugin):
def init(self):
......
......@@ -22,9 +22,9 @@ Usage
"""
from plugin import BasePlugin
from common import shell_split
import tabs
from poezio.plugin import BasePlugin
from poezio.common import shell_split
from poezio import tabs
class Plugin(BasePlugin):
def init(self):
......
"""
Double the first word of any message you send in a :ref:`muctab`, making you appear retarded.
"""
from plugin import BasePlugin
from poezio.plugin import BasePlugin
class Plugin(BasePlugin):
def init(self):
......
......@@ -35,8 +35,8 @@ Usage
"""
from plugin import BasePlugin
import common
from poezio.plugin import BasePlugin
from poezio import common
import subprocess
class Plugin(BasePlugin):
......
......@@ -11,7 +11,7 @@ Say something in a Chat tab.
.. note:: Can create fun things when used with :ref:`The rainbow plugin <rainbow-plugin>`.
"""
from plugin import BasePlugin
from poezio.plugin import BasePlugin
import subprocess
class Plugin(BasePlugin):
......
......@@ -2,7 +2,7 @@
Show the exchanged IQs (useful for debugging).
"""
from plugin import BasePlugin
from poezio.plugin import BasePlugin
from slixmpp.xmlstream.matcher import StanzaPath
from slixmpp.xmlstream.handler import Callback
......
......@@ -129,10 +129,10 @@ Example configuration
"""
from plugin import BasePlugin
from decorators import command_args_parser
import common
import tabs
from poezio.plugin import BasePlugin
from poezio.decorators import command_args_parser
from poezio import common
from poezio import tabs
class Plugin(BasePlugin):
......
......@@ -82,10 +82,10 @@ Options
import platform
import re
from plugin import BasePlugin
from xhtml import clean_text
import common
import tabs
from poezio.plugin import BasePlugin
from poezio.xhtml import clean_text
from poezio import common
from poezio import tabs
url_pattern = re.compile(r'\b(http[s]?://(?:\S+))\b', re.I|re.U)
app_mapping = {
......
......@@ -34,10 +34,10 @@ Configuration
"""
from plugin import BasePlugin
import tabs
import xhtml
from decorators import command_args_parser
from poezio.plugin import BasePlugin
from poezio import tabs
from poezio import xhtml
from poezio.decorators import command_args_parser
def move(text, step, spacing):
new_text = text + (" " * spacing)
......
......@@ -10,8 +10,8 @@ Command
**Usage:** ``/mirror``
"""
from plugin import BasePlugin
import tabs
from poezio.plugin import BasePlugin
from poezio import tabs
class Plugin(BasePlugin):
def init(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment