Skip to content

Commit

Permalink
Windows: Search current folder for discid.dll
Browse files Browse the repository at this point in the history
Windows Python 3.8+ only
Fixes JonnyJD#143
  • Loading branch information
jesus2099 committed Mar 26, 2023
1 parent 8975e75 commit 07edba3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions isrcsubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07edba3

Please sign in to comment.