Skip to content

Commit eff96c4

Browse files
author
Nick Groenen
committed
Hack to ensure we can import secondlife
1 parent ce12b2a commit eff96c4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

err-secondlife.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
import logging
1616

1717
from errbot import BotPlugin, botcmd
18+
19+
# Hack to ensure we can import secondlife
20+
from sys import path
21+
from os.path import dirname, realpath
22+
path.append(dirname(realpath(__file__)))
23+
1824
from secondlife import MySecondLife
1925

2026
class SecondLife(BotPlugin):

0 commit comments

Comments
 (0)