diff --git a/direct/src/dist/commands.py b/direct/src/dist/commands.py index e710366177..e55ed8a2cd 100644 --- a/direct/src/dist/commands.py +++ b/direct/src/dist/commands.py @@ -157,7 +157,7 @@ from _frozen_importlib import _imp, FrozenImporter sys.frozen = True -if sys.platform == 'win32': +if sys.platform == 'win32' and sys.version_info < (3, 10): # Make sure the preferred encoding is something we actually support. import _bootlocale enc = _bootlocale.getpreferredencoding().lower()