diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-06-30 10:08:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-06-30 10:08:08 +0400 |
commit | 154707492df2629faf65052ad22f77e9dc47d82b (patch) | |
tree | 7eff596025afb0b35993b54aa9c3716fc830c3d4 /netrender/repath.py | |
parent | d406b40b023409ff657c24a6e56e0660d83caddf (diff) |
Netrender: enable scripts, drivers
Diffstat (limited to 'netrender/repath.py')
-rw-r--r-- | netrender/repath.py | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/netrender/repath.py b/netrender/repath.py index e06b17c5..e39929b4 100644 --- a/netrender/repath.py +++ b/netrender/repath.py @@ -25,7 +25,6 @@ DEBUG = False from netrender.utils import * -BLENDER_PATH = sys.argv[0] def reset(job): main_file = job.files[0] @@ -60,8 +59,21 @@ def update(job): paths.append(rfile.filepath) # Only update if needed - if paths: - process = subprocess.Popen([BLENDER_PATH, "-b", "-noaudio", job_full_path, "-P", __file__, "--", new_path, original_path] + paths, stdout=sys.stdout, stderr=subprocess.STDOUT) + if paths: + process = subprocess.Popen( + [bpy.app.binary_path, + "-b", + "-y", + "-noaudio", + job_full_path, + "-P", __file__, + "--", + new_path, + original_path, + ] + paths, + stdout=sys.stdout, + stderr=subprocess.STDOUT, + ) process.wait() os.renames(job_full_path, job_full_path + ".bak") |