mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
Fix installation on a system that never had Supybot installed (fix commit 05c9482759
)
This commit is contained in:
parent
d6cd8a5427
commit
ce29bf8b5c
@ -32,7 +32,12 @@ import sys
|
|||||||
import os.path
|
import os.path
|
||||||
import dynamicScope
|
import dynamicScope
|
||||||
|
|
||||||
import supybot.utils as utils
|
try:
|
||||||
|
import supybot.utils as utils
|
||||||
|
except ImportError: # We are running setup.py
|
||||||
|
import src
|
||||||
|
sys.modules['supybot'] = src
|
||||||
|
import src.utils as utils
|
||||||
|
|
||||||
(__builtins__ if isinstance(__builtins__, dict) else __builtins__.__dict__)['format'] = utils.str.format
|
(__builtins__ if isinstance(__builtins__, dict) else __builtins__.__dict__)['format'] = utils.str.format
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user