You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
486 B

4 years ago
  1. # This module is kept for backwards compatibility, so users can import
  2. # scrapy.conf.settings and get the settings they expect
  3. import sys
  4. if 'scrapy.cmdline' not in sys.modules:
  5. from scrapy.utils.project import get_project_settings
  6. settings = get_project_settings()
  7. import warnings
  8. from scrapy.exceptions import ScrapyDeprecationWarning
  9. warnings.warn("Module `scrapy.conf` is deprecated, use `crawler.settings` attribute instead",
  10. ScrapyDeprecationWarning, stacklevel=2)