From 4dc35836addfcdc888c2e9e6129eb8a3604efa9b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 9 Mar 2012 21:23:15 +0000 Subject: code cleanup: remove unused variable assignents and added bmesh submodule links, doc correction reported by dfelinto. --- doc/python_api/rst/info_tips_and_tricks.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/python_api/rst/info_tips_and_tricks.rst b/doc/python_api/rst/info_tips_and_tricks.rst index 0b9404906e2..521031f5e61 100644 --- a/doc/python_api/rst/info_tips_and_tricks.rst +++ b/doc/python_api/rst/info_tips_and_tricks.rst @@ -82,7 +82,7 @@ You might want to reference a script relative to the blend file. import bpy import os - filename = os.path.join(os.path.basename(bpy.data.filepath), "myscript.py") + filename = os.path.join(os.path.dirname(bpy.data.filepath), "myscript.py") exec(compile(open(filename).read(), filename, 'exec')) -- cgit v1.2.3