1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-06-25 08:38:43 +00:00

Merge 7fd23a60f6341e8d76761d30fe4d710049e036c8 into b85d5b907d0de05fc217c98c8810edc97399b3c1

This commit is contained in:
Gertjan van den Burg 2025-04-27 16:09:38 +00:00 committed by GitHub
commit f168843f63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,9 +13,10 @@ from typing import Any, Dict, Optional, Type
import importlib_resources
import yaml
if environ.get("ESCPOS_CAPABILITIES_DEBUG", 0):
logging.basicConfig()
logger = logging.getLogger(__name__)
logger = logging.getLogger(__name__)
pickle_dir = environ.get("ESCPOS_CAPABILITIES_PICKLE_DIR", mkdtemp())
pickle_path = path.join(pickle_dir, f"{platform.python_version()}.capabilities.pickle")
# get a temporary file from importlib_resources if no file is specified in env