From f29b346f793e58743eb62e6224f780566d7933da Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Wed, 22 Sep 2010 22:21:29 -0300 Subject: [PATCH] Fixed access to settings module name, broken after recent changes to Settings classes --- scrapy/cmdline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/cmdline.py b/scrapy/cmdline.py index 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: