Skip to content

Commit

Permalink
Fix Scrapy template running on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fnesveda committed Mar 11, 2023
1 parent 851dc7c commit 874a1c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified dist/templates/python-scrapy.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion templates/python-scrapy/src/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def new_configure_logging(*args, **kwargs):
from .main import main

# This is necessary so that twisted and asyncio work well together
nest_asyncio.apply()
install_reactor('twisted.internet.asyncioreactor.AsyncioSelectorReactor')
nest_asyncio.apply()

os.environ['SCRAPY_SETTINGS_MODULE'] = 'src.settings'

Expand Down

0 comments on commit 874a1c5

Please sign in to comment.