mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Merge pull request #1323 from markshannon/hotfix-path-fix
Python QL: Use Module.getPath() to implement ModuleObject.getPath()
This commit is contained in:
@@ -234,10 +234,7 @@ class PackageObject extends ModuleObject {
|
||||
}
|
||||
|
||||
override Container getPath() {
|
||||
exists(ModuleObject m |
|
||||
m.getPackage() = this |
|
||||
result = m.getPath().getParent()
|
||||
)
|
||||
result = this.getModule().getPath()
|
||||
}
|
||||
|
||||
ModuleObject submodule(string name) {
|
||||
|
||||
Reference in New Issue
Block a user