From fbb89fffb7e443e911a047aa6f645969a8f4ec6e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 28 Aug 2013 00:59:42 +0000 Subject: use directory selection for demo-mode. --- system_demo_mode/config.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'system_demo_mode/config.py') diff --git a/system_demo_mode/config.py b/system_demo_mode/config.py index 93379061..74111127 100644 --- a/system_demo_mode/config.py +++ b/system_demo_mode/config.py @@ -15,11 +15,6 @@ def blend_list(path): def generate(dirpath, random_order, **kwargs): - - # in case file is selected! - if not os.path.exists(dirpath) or not os.path.isdir(dirpath): - dirpath = os.path.dirname(dirpath) - files = list(blend_list(dirpath)) if random_order: import random -- cgit v1.2.3