Source

zedify / zedify / install.py

Full commit
import os
import sys

from zedify.config import copy_config


def install_plugin():
    """Install the weechat plugin"""

    user = os.path.expanduser('~/.weechat/python/autoload/')
    try:
        os.makedirs(user)
    except OSError:
        pass

    os.symlink('/usr/share/zedify/zedifier.py',
               os.path.join(user, 'zedifier.py'))
    copy_config()

    sys.stdout.write('Zedifier plugin installed. Your configuration file is '
                     'at ~/.zedifyrc. You may now start weechat-curses\n')