mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-04-25 04:21:15 -05:00
This is a simpler way to install Limnoria plugin: https://docs.limnoria.net/develop/plugin_distribution.html#via-pip-pypi This will allow installing ChanTracker with this command: pip3 install git+https://github.com/ncoevoet/ChanTracker.git
14 lines
286 B
Python
14 lines
286 B
Python
import os
|
|
import sys
|
|
|
|
from supybot.setup import plugin_setup
|
|
|
|
# Workaround pip changing the name of the root directory
|
|
(parent, dir_) = os.path.split(os.path.dirname(__file__))
|
|
sys.path.insert(0, parent)
|
|
sys.modules["ChanTracker"] = __import__(dir_)
|
|
|
|
plugin_setup(
|
|
'ChanTracker',
|
|
)
|