mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
more exceptions for pre pisyde install
This commit is contained in:
parent
b42505b430
commit
07e67a14b7
1 changed files with 7 additions and 5 deletions
|
|
@ -169,8 +169,7 @@ class InstallPySideToBlender(PreLaunchHook):
|
|||
except pywintypes.error:
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def install_pyside(python_executable):
|
||||
def install_pyside(self, python_executable):
|
||||
"""Install PySide2 python module to blender's python."""
|
||||
try:
|
||||
# Parameters
|
||||
|
|
@ -188,13 +187,16 @@ class InstallPySideToBlender(PreLaunchHook):
|
|||
process = subprocess.Popen(
|
||||
args, stdout=subprocess.PIPE, universal_newlines=True
|
||||
)
|
||||
stdout, _ = process.communicate()
|
||||
process.communicate()
|
||||
return process.returncode == 0
|
||||
except PermissionError:
|
||||
self.log.warning("Permission denied with command: \"{}\".".format(" ".join(args)))
|
||||
except OSError as error:
|
||||
self.log.warning("OS error has occurred with command: \"{error}\".")
|
||||
except subprocess.SubprocessError:
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def is_pyside_installed(python_executable):
|
||||
def is_pyside_installed(self, python_executable):
|
||||
"""Check if PySide2 module is in blender's pip list.
|
||||
|
||||
Check that PySide2 is installed directly in blender's site-packages.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue