diff --git a/python/ql/lib/semmle/python/Module.qll b/python/ql/lib/semmle/python/Module.qll index 87116a1d98b..4ee5c518f03 100644 --- a/python/ql/lib/semmle/python/Module.qll +++ b/python/ql/lib/semmle/python/Module.qll @@ -195,7 +195,7 @@ private predicate isPotentialPackage(Folder f) { } private string moduleNameFromBase(Container file) { - isPotentialPackage(file) and result = file.getBaseName() + result = file.getBaseName() or file instanceof File and result = file.getStem() }