Skip to content

Commit

Permalink
Isolate @omgitsraven (RavenWorks) fix to Windows Python 3.8+
Browse files Browse the repository at this point in the history
Fixes JonnyJD#124 and JonnyJD#143 without breaking other OS nor older Python
  • Loading branch information
jesus2099 committed Mar 28, 2023
1 parent 9d9e29b commit af1f8d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion isrcsubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
from optparse import OptionParser
from subprocess import Popen, PIPE, call

os.add_dll_directory(os.getcwd())
# 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
Expand Down

0 comments on commit af1f8d7

Please sign in to comment.