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