diff --git a/direct/src/p3d/Packager.py b/direct/src/p3d/Packager.py index 11b1acd302..1c85121c04 100644 --- a/direct/src/p3d/Packager.py +++ b/direct/src/p3d/Packager.py @@ -2271,7 +2271,13 @@ class Packager: package = host.getPackage(packageName, version, platform = platform) if not package and not version: - # With no version specified, find the best matching version. + # No explicit version is specified, first fallback: look + # for the compiled-in version. + package = host.getPackage(packageName, PandaSystem.getPackageVersionString(), platform = platform) + + if not package and not version: + # No explicit version is specified, second fallback: get + # the highest-numbered version available. packages = host.getPackages(packageName, platform = platform) self.__sortPackageInfos(packages) for p in packages: