mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14: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 pyblish.api
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
try:
|
||||||
|
import os.errno as errno
|
||||||
|
except ImportError:
|
||||||
|
import errno
|
||||||
|
|
||||||
|
|
||||||
class ValidateFfmpegInstallef(pyblish.api.Validator):
|
class ValidateFfmpegInstallef(pyblish.api.Validator):
|
||||||
|
|
@ -18,7 +22,7 @@ class ValidateFfmpegInstallef(pyblish.api.Validator):
|
||||||
[name], stdout=devnull, stderr=devnull
|
[name], stdout=devnull, stderr=devnull
|
||||||
).communicate()
|
).communicate()
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno == os.errno.ENOENT:
|
if e.errno == errno.ENOENT:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue