From 07edba3e559a905c903ec8f4b9962b6443ccae15 Mon Sep 17 00:00:00 2001 From: jesus2099 Date: Sun, 26 Mar 2023 19:15:14 +0200 Subject: [PATCH] Windows: Search current folder for discid.dll Windows Python 3.8+ only Fixes #143 --- isrcsubmit.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/isrcsubmit.py b/isrcsubmit.py index d0c1a27..b4254dc 100755 --- a/isrcsubmit.py +++ b/isrcsubmit.py @@ -43,6 +43,10 @@ from optparse import OptionParser from subprocess import Popen, PIPE, call +# Windows Python 3.8+ scan current folder for discid.dll +if os.name == "nt" and sys.version_info >= (3,8): + os.add_dll_directory(os.getcwd()) + try: import discid from discid import DiscError