Skip to content

Commit b2688bb

Browse files
committed
Python: Relax module resolution
Do not require modules to reside in a package
1 parent 3767ce5 commit b2688bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/lib/semmle/python/Module.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ private predicate isPotentialPackage(Folder f) {
195195
}
196196

197197
private string moduleNameFromBase(Container file) {
198-
isPotentialPackage(file) and result = file.getBaseName()
198+
result = file.getBaseName()
199199
or
200200
file instanceof File and result = file.getStem()
201201
}

0 commit comments

Comments
 (0)