SolarFM/plugins/thumbnailer/icons/mixins/meshsiconmixin.py

18 lines
356 B
Python

# Python imports
import subprocess
# Lib imports
# Application imports
class MeshsIconMixin:
def generate_blender_thumbnail(self, full_path, hash_img_path):
try:
proc = subprocess.Popen([self.BLENDER_THUMBNLR, full_path, hash_img_path])
proc.wait()
except Exception as e:
logger.debug(repr(e))