Python QL: Use Module.getPath() to implement ModuleObject.getPath()

This commit is contained in:
Mark Shannon
2019-05-09 16:00:58 +01:00
parent 4e10e285a2
commit 0035dc2982

View File

@@ -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) {