Merge pull request #3132 from BigRoy/modulesloader_typo

Cosmetics: Minor typo fix in ModulesLoader
This commit is contained in:
Jakub Trllo 2022-05-03 11:41:36 +02:00 committed by GitHub
commit be1a10670d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -306,11 +306,11 @@ def _load_modules():
basename, ext = os.path.splitext(filename)
if os.path.isdir(fullpath):
# Check existence of init fil
# Check existence of init file
init_path = os.path.join(fullpath, "__init__.py")
if not os.path.exists(init_path):
log.debug((
"Module directory does not contan __init__.py file {}"
"Module directory does not contain __init__.py file {}"
).format(fullpath))
continue
@ -353,11 +353,11 @@ def _load_modules():
basename, ext = os.path.splitext(filename)
if os.path.isdir(fullpath):
# Check existence of init fil
# Check existence of init file
init_path = os.path.join(fullpath, "__init__.py")
if not os.path.exists(init_path):
log.debug((
"Module directory does not contan __init__.py file {}"
"Module directory does not contain __init__.py file {}"
).format(fullpath))
continue