mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
python2.7 win32 compat fix
This commit is contained in:
parent
df2ae3b63b
commit
d1f1f914ad
1 changed files with 5 additions and 1 deletions
|
@ -53,7 +53,11 @@ processingChain = [
|
||||||
# don't show box on windows
|
# don't show box on windows
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
si = subprocess.STARTUPINFO()
|
si = subprocess.STARTUPINFO()
|
||||||
|
try:
|
||||||
si.dwFlags |= subprocess.STARTF_USESHOWWINDOW
|
si.dwFlags |= subprocess.STARTF_USESHOWWINDOW
|
||||||
|
except:
|
||||||
|
# python2.7+
|
||||||
|
si.dwFlags |= subprocess._subprocess.STARTF_USESHOWWINDOW
|
||||||
else:
|
else:
|
||||||
si = None
|
si = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue