mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
dist: Disable _bootlocale injection for Python 3.10+
Python 3.10 removed the _bootlocale module (see bpo-42208) [skip ci]
This commit is contained in:
parent
930e5da438
commit
cafcdede5f
2
direct/src/dist/commands.py
vendored
2
direct/src/dist/commands.py
vendored
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user