Open mode9 opened 1 year ago
HAS_DISPLAY is defined globally. https://github.com/asweigart/pyperclip/blob/781603ea491eefce3b58f4f203bf748dbf9ff003/src/pyperclip/__init__.py#L66
HAS_DISPLAY
It means that pyperclip should always be imported dynamically after DISPLAY is changed. Checking DISPLAY when copy/paste called may be good enough.
pyperclip
DISPLAY
HAS_DISPLAY
is defined globally. https://github.com/asweigart/pyperclip/blob/781603ea491eefce3b58f4f203bf748dbf9ff003/src/pyperclip/__init__.py#L66It means that
pyperclip
should always be imported dynamically afterDISPLAY
is changed. CheckingDISPLAY
when copy/paste called may be good enough.