mirror of https://github.com/scrapy/scrapy.git
changed SCRAPYSETTINGS_MODULE to SCRAPY_SETTINGS_MODULE
This commit is contained in:
parent
0bfa1a910c
commit
3616ccb479
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
os.environ.setdefault('SCRAPYSETTINGS_MODULE', 'googledir.settings')
|
||||
os.environ.setdefault('SCRAPY_SETTINGS_MODULE', 'googledir.settings')
|
||||
|
||||
from scrapy.command.cmdline import execute
|
||||
execute()
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ class Settings(object):
|
|||
self.defaults = {}
|
||||
self.global_defaults = import_(self.default_settings_module)
|
||||
self.disabled = os.environ.get('SCRAPY_SETTINGS_DISABLED', False)
|
||||
settings_module_path = os.environ.get('SCRAPYSETTINGS_MODULE', \
|
||||
'scrapy_settings')
|
||||
settings_module_path = os.environ.get('SCRAPY_SETTINGS_MODULE', \
|
||||
os.environ.get('SCRAPYSETTINGS_MODULE', 'scrapy_settings'))
|
||||
self.set_settings_module(settings_module_path)
|
||||
|
||||
# XXX: find a better solution for this hack
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
os.environ.setdefault('SCRAPYSETTINGS_MODULE', '${project_name}.settings')
|
||||
os.environ.setdefault('SCRAPY_SETTINGS_MODULE', '${project_name}.settings')
|
||||
|
||||
from scrapy.command.cmdline import execute
|
||||
execute()
|
||||
|
|
|
|||
Loading…
Reference in New Issue