imported ismael patch for depreacting old SCRAPYSETTINGS_MODULE envvar

This commit is contained in:
Pablo Hoffman 2009-08-31 10:17:12 -03:00
parent 268acc30f5
commit 8f013bf227
1 changed files with 5 additions and 0 deletions

View File

@ -6,9 +6,14 @@ See documentation in docs/topics/settings.rst
import os
import cPickle as pickle
import warnings
from scrapy.conf import default_settings
if 'SCRAPYSETTINGS_MODULE' in os.environ:
warnings.warn("SCRAPYSETTINGS_MODULE environment variable is deprecated, " \
"use SCRAPY_SETTINGS_MODULE instead", DeprecationWarning, stacklevel=2)
import_ = lambda x: __import__(x, {}, {}, [''])
class Settings(object):