From 88d27aa31c1eeb7d48cc468ed23a4ed18a8922f9 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 24 Feb 2023 20:18:30 +0100 Subject: [PATCH] dist: Import pkg_resources lazily --- direct/src/dist/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/dist/commands.py b/direct/src/dist/commands.py index 3db4066d58..cbbfe4c204 100644 --- a/direct/src/dist/commands.py +++ b/direct/src/dist/commands.py @@ -6,7 +6,6 @@ on how to use these commands. import os import plistlib -import pkg_resources import sys import subprocess import zipfile @@ -58,6 +57,7 @@ def _register_python_loaders(): registry = p3d.LoaderFileTypeRegistry.getGlobalPtr() + import pkg_resources for entry_point in pkg_resources.iter_entry_points('panda3d.loaders'): registry.register_deferred_type(entry_point)