Scrapy, a fast high-level web crawling & scraping framework for Python.
Fixed access to settings module name, broken after recent changes to Settings classes
Pablo Hoffmanf29b346f793e
diff --git a/scrapy/cmdline.py b/scrapy/cmdline.pyindex 9706828ed..134d88bb0 100644--- a/scrapy/cmdline.py+++ b/scrapy/cmdline.py@@ -89,7 +89,7 @@ def _check_deprecated_scrapy_ctl(argv, inproject):with open(cfg_path, 'w') as f:f.write("# generated automatically - feel free to edit" + os.linesep)f.write("[settings]" + os.linesep)- f.write("default = %s" % settings.settings_module_path + os.linesep)+ f.write("default = %s" % settings.settings_module.__name__ + os.linesep)def _run_print_help(parser, func, *a, **kw):try: