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:
commit
f168843f63
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user