mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fixed python2/3 compatibility
This commit is contained in:
parent
50438283cd
commit
d64bc8388a
1 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,10 @@
|
|||
import pyblish.api
|
||||
import os
|
||||
import subprocess
|
||||
try:
|
||||
import os.errno as errno
|
||||
except ImportError:
|
||||
import errno
|
||||
|
||||
|
||||
class ValidateFfmpegInstallef(pyblish.api.Validator):
|
||||
|
|
@ -18,7 +22,7 @@ class ValidateFfmpegInstallef(pyblish.api.Validator):
|
|||
[name], stdout=devnull, stderr=devnull
|
||||
).communicate()
|
||||
except OSError as e:
|
||||
if e.errno == os.errno.ENOENT:
|
||||
if e.errno == errno.ENOENT:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue