how to get minor version of a packaged mf file?

I have that I am building all the time with ppackage and the game updates with panda3d -f. Instead of adding a version string to file some place I want to use the same version that the mf uses.

I can find the mf file itself via vfs.getMounts(), but how to find the version?

Get the PackageInfo object from the appRunner. You can do this either by iterating through base.appRunner.installedPackages, or by using base.appRunner.getPackage().

The PackageInfo object has all of the information you would ever need about the package, including packageInfo.patchVersion.