This repository has been archived on 2023-02-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
flamenco-worker/tests/abstract_worker_test.py
Sybren A. Stüvel 4d9819c92f Removed Flamenco Server and Manager, and moved Worker to top level
This is a clone of the Flamenco repository from back in the days when
Server, Manager and Worker shared the same Git repository. This is the
commit where that ended, and they went their separate ways.
2017-03-03 16:13:09 +01:00

29 lines
728 B
Python

import unittest
class AbstractWorkerTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
import logging
logging.basicConfig(
level=logging.DEBUG,
format='%(asctime)-15s %(levelname)8s %(name)s %(message)s',
)
def find_blender_cmd(self):
import os
import platform
if platform.system() == 'Windows':
blender = 'blender.exe'
else:
blender = 'blender'
for path in os.getenv('PATH').split(os.path.pathsep):
full_path = path + os.sep + blender
if os.path.exists(full_path):
return full_path
self.fail('Unable to find "blender" executable on $PATH')