import os

# use this for running scrapy directly
# PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
# FILES_STORE = os.path.join(PROJECT_ROOT, 'datafiles')

# Use this for deploying to scrapyd, as it would be in stage/production
FILES_STORE = '/var/lib/scrapyd/files'
import os

# use this for running scrapy directly
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
FILES_STORE = os.path.join(PROJECT_ROOT, 'datafiles')

Fix issue with scrapy local settings
Fix issue with scrapy local settings

  import os
  
  # use this for running scrapy directly
- # PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
+ PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
- # FILES_STORE = os.path.join(PROJECT_ROOT, 'datafiles')
+ FILES_STORE = os.path.join(PROJECT_ROOT, 'datafiles')
  
- # Use this for deploying to scrapyd, as it would be in stage/production
- FILES_STORE = '/var/lib/scrapyd/files'
Fix issue with scrapy local settings
## Code Before:
import os

# use this for running scrapy directly
# PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
# FILES_STORE = os.path.join(PROJECT_ROOT, 'datafiles')

# Use this for deploying to scrapyd, as it would be in stage/production
FILES_STORE = '/var/lib/scrapyd/files'
## Instruction:
Fix issue with scrapy local settings
## Code After:
import os

# use this for running scrapy directly
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
FILES_STORE = os.path.join(PROJECT_ROOT, 'datafiles')
