diff options
Diffstat (limited to 'doc/python_api/rst/info_tips_and_tricks.rst')
-rw-r--r-- | doc/python_api/rst/info_tips_and_tricks.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/python_api/rst/info_tips_and_tricks.rst b/doc/python_api/rst/info_tips_and_tricks.rst index 793259401b8..e345f36a148 100644 --- a/doc/python_api/rst/info_tips_and_tricks.rst +++ b/doc/python_api/rst/info_tips_and_tricks.rst @@ -115,7 +115,7 @@ While this is not best practice - for testing you can extend the search path, th import os import bpy - blend_dir = os.path.basename(bpy.data.filepath) + blend_dir = os.path.dirname(bpy.data.filepath) if blend_dir not in sys.path: sys.path.append(blend_dir) |