Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions source/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ def addConfigDirsToPythonPackagePath(module, subdir=None):
if not subdir:
subdir = module.__name__
fullPath=os.path.join(getScratchpadDir(),subdir)
# Ensure this directory exists otherwise pkgutil.iter_importers may emit None for missing paths.
if not os.path.isdir(fullPath):
os.makedirs(fullPath)
# Insert this path at the beginning of the module's search paths.
# The module's search paths may not be a mutable list, so replace it with a new one
pathList=[fullPath]
Expand Down