Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-06-30 10:08:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-06-30 10:08:08 +0400
commit154707492df2629faf65052ad22f77e9dc47d82b (patch)
tree7eff596025afb0b35993b54aa9c3716fc830c3d4 /netrender/repath.py
parentd406b40b023409ff657c24a6e56e0660d83caddf (diff)
Netrender: enable scripts, drivers
Diffstat (limited to 'netrender/repath.py')
-rw-r--r--netrender/repath.py18
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")