removing hard code entries

This commit is contained in:
Anderson Carlos Ferreira da Silva 2023-07-05 16:56:34 +09:00 committed by GitHub
parent b6196309cb
commit 7ce3d8f98a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@ DATADIR_CFG_SECTION = "datadir"
def inside_project():
scrapy_module = os.environ.get("SCRAPY_SETTINGS_MODULE")
if scrapy_module is not None:
scrapy_module = os.environ.get(ENVVAR)
if scrapy_module:
try:
import_module(scrapy_module)
except ImportError as exc: