1
0

dependencies: vendor "pyperclip" pkg, used by text gui

commit 43ab4a779a introduced "pyperclip" as a dependency for the prototype "text" gui.

pyperclip is small enough for us to vendor it, and looks mature/stable enough so that it would ~never need updating.
This makes it easier to try out the text gui when running from source, or using the AppImage.
This commit is contained in:
SomberNight
2024-01-23 15:48:50 +00:00
parent 522e9485c1
commit 06db7d74ff
4 changed files with 778 additions and 1 deletions

View File

@@ -8,7 +8,10 @@ import getpass
from typing import TYPE_CHECKING, Optional
# 3rd-party dependency:
import pyperclip
try:
import pyperclip
except ImportError: # only use vendored lib as fallback, to allow Linux distros to bring their own
from electrum._vendor import pyperclip
import electrum
from electrum.gui import BaseElectrumGui