From 0a7e7195a2ac01ccf3cea298b776eb504f0bef00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 2 Jan 2018 15:37:38 +0100 Subject: [PATCH] Changed default Flamenco path to tempfile.gettempdir() The previous defaults were very Blender Institute specific. --- blender_cloud/blender.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/blender_cloud/blender.py b/blender_cloud/blender.py index 50a6b7c..c6d3a75 100644 --- a/blender_cloud/blender.py +++ b/blender_cloud/blender.py @@ -23,6 +23,7 @@ Separated from __init__.py so that we can import & run from non-Blender environm import functools import logging import os.path +import tempfile import bpy from bpy.types import AddonPreferences, Operator, WindowManager, Scene, PropertyGroup @@ -232,21 +233,16 @@ class BlenderCloudPreferences(AddonPreferences): description='Filter like "*.abc;*.mkv" to prevent certain files to be packed ' 'into the output directory', default='') - # TODO: before making Flamenco public, change the defaults to something less Institute-specific. - # NOTE: The assumption is that the workers can also find the files in the same path. - # This assumption is true for the Blender Institute. flamenco_job_file_path = StringProperty( name='Job Storage Path', description='Path where to store job files, should be accesible for Workers too', subtype='DIR_PATH', - default='/render/_flamenco/storage') - - # TODO: before making Flamenco public, change the defaults to something less Institute-specific. + default=tempfile.gettempdir()) flamenco_job_output_path = StringProperty( name='Job Output Path', description='Path where to store output files, should be accessible for Workers', subtype='DIR_PATH', - default='/render/_flamenco/output') + default=tempfile.gettempdir()) flamenco_job_output_strip_components = IntProperty( name='Job Output Path Strip Components', description='The final output path comprises of the job output path, and the blend file '