1
0

rm some legacy cruft for old python versions

This commit is contained in:
SomberNight
2024-06-05 14:55:48 +00:00
parent 982443eaa3
commit 13e2949088
4 changed files with 5 additions and 15 deletions

View File

@@ -7,8 +7,7 @@ is_local = not is_bundle and os.path.exists(os.path.join(os.path.dirname(os.path
# when running from source, on Windows, also search for DLLs in inner 'electrum' folder
if is_local and os.name == 'nt':
if hasattr(os, 'add_dll_directory'): # requires python 3.8+
os.add_dll_directory(os.path.dirname(__file__))
os.add_dll_directory(os.path.dirname(__file__))
class GuiImportError(ImportError):