Fix installation on a system that never had Supybot installed (fix commit 05c9482759)

This commit is contained in:
Valentin Lorentz 2011-05-06 19:34:46 +02:00
parent d6cd8a5427
commit ce29bf8b5c

View File

@ -32,7 +32,12 @@ import sys
import os.path
import dynamicScope
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