Add 'import supybot.i18n' warning to supybot-wizard.

This commit is contained in:
Valentin Lorentz 2017-01-22 09:28:42 +01:00
parent 260a511942
commit eef901894d
2 changed files with 15 additions and 2 deletions

View File

@ -74,7 +74,7 @@ try:
except ImportError:
sys.stderr.write("""Error:
You are running a mix of Limnoria and stock Supybot code. Although you run
one of Limnoria\'s executables are installed, Python tries to load stock
one of Limnoria\'s executables, Python tries to load stock
Supybot\'s library. To fix this issue, uninstall Supybot
("%s -m pip uninstall supybot" should do the job)
and install Limnoria again.

View File

@ -54,7 +54,20 @@ import socket
import logging
import optparse
import supybot.i18n as i18n
try:
import supybot.i18n as i18n
except ImportError:
sys.stderr.write("""Error:
You are running a mix of Limnoria and stock Supybot code. Although you run
one of Limnoria\'s executables, Python tries to load stock
Supybot\'s library. To fix this issue, uninstall Supybot
("%s -m pip uninstall supybot" should do the job)
and install Limnoria again.
For your information, Supybot's libraries are installed here:
%s\n""" %
(sys.executable, '\n '.join(supybot.__path__)))
exit(-1)
import supybot.ansi as ansi
import supybot.utils as utils
import supybot.ircutils as ircutils