diff options
-rw-r--r-- | release/scripts/startup/bl_app_templates_system/Video_Editing/__init__.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_app_templates_system/Video_Editing/__init__.py b/release/scripts/startup/bl_app_templates_system/Video_Editing/__init__.py new file mode 100644 index 00000000000..8d13f41a43f --- /dev/null +++ b/release/scripts/startup/bl_app_templates_system/Video_Editing/__init__.py @@ -0,0 +1,22 @@ + +import bpy +from bpy.app.handlers import persistent + + +@persistent +def load_handler(dummy): + import os + from bpy import context + screen = context.screen + for area in screen.areas: + if area.type == 'FILE_BROWSER': + space = area.spaces.active + params = space.params + params.directory = os.path.expanduser("~") + params.use_filter_folder = True + +def register(): + bpy.app.handlers.load_factory_startup_post.append(load_handler) + +def unregister(): + bpy.app.handlers.load_factory_startup_post.remove(load_handler) |