Get blender binary from evn if set

This commit is contained in:
2014-11-27 13:18:19 +01:00
parent 85fd8513ae
commit 13993426ac

View File

@@ -288,6 +288,7 @@ def file_quick_write(path, filepart=None, data=None):
with open(path, mode) as f:
f.write(data)
def file_quick_read(path, filepart=None, mode='rb'):
if filepart is not None:
@@ -357,8 +358,9 @@ def blendfile_template_create(blendfile, blendfile_root, create_id, create_data,
else:
blendfile_create_data_json = None
blender = os.getenv('BLENDER_BIN', "blender")
cmd = (
"blender",
blender,
"--background",
"--factory-startup",
"-noaudio",
@@ -626,6 +628,7 @@ class BamSessionTestCase(unittest.TestCase):
self.assertEqual("", stderr)
return proj_path, session_path
class BamInitTest(BamSessionTestCase):
"""Test the `bam init user@http://bamserver/projectname` command.
We verify that a project folder is created, and that it contains a .bam subfolder