Fix T58897: Show folders in video editing template

Show folders and start in the users home.
This commit is contained in:
Campbell Barton
2018-12-07 14:27:22 +11:00
parent a304ed1b01
commit 8a5656caa9

View File

@@ -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)