Use empty string as fallback value for module path

The module path is used later to join path so it must be a string.

Closes #13229
This commit is contained in:
Cédric Krier committed 2024-05-01 19:59:17 +02:00
1 parent e45ff0098b
commit 928ca1dae1
1 file changed
+1 -1
+1 -1
View File
@@ -67,7 +67,7 @@ def find_path(name, subdir='modules', _test=os.path.isfile):
try:
module_name, module_path = name.split(os.sep, 1)
except ValueError:
module_name, module_path = name, None
module_name, module_path = name, ''
if module_name in {'ir', 'res', 'tests'}:
path = secure_join(root_path, module_name, module_path)
else: