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>2011-11-06 18:57:25 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-06 18:57:25 +0400
commit1067cc727f03590902de3e59276437ba396ec37b (patch)
tree057453ece44fecf595924418bd277d8739212914 /system_demo_mode
parent81771c7a18d982b0d17df3cf31eb60378e60fe8c (diff)
fix error converting relative to absolute search path, could search entire disk in some cases
Diffstat (limited to 'system_demo_mode')
-rw-r--r--system_demo_mode/demo_mode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/system_demo_mode/demo_mode.py b/system_demo_mode/demo_mode.py
index afd14667..109d9ab7 100644
--- a/system_demo_mode/demo_mode.py
+++ b/system_demo_mode/demo_mode.py
@@ -450,7 +450,7 @@ def load_config(cfg_name=DEMO_CFG):
if demo_search_path is None:
print("reading: %r, no search_path found, missing files wont be searched." % demo_path)
if demo_search_path.startswith("//"):
- demo_search_path = os.path.relpath(demo_search_path)
+ demo_search_path = bpy.path.abspath(demo_search_path)
if not os.path.exists(demo_search_path):
print("reading: %r, search_path %r does not exist." % (demo_path, demo_search_path))
demo_search_path = None