Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release')
-rw-r--r--release/scripts/templates/script_stub.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/templates/script_stub.py b/release/scripts/templates/script_stub.py
index 69ecbf48d2c..3b3212892d5 100644
--- a/release/scripts/templates/script_stub.py
+++ b/release/scripts/templates/script_stub.py
@@ -7,5 +7,5 @@ import os
# Use your own script name here:
filename = "my_script.py"
-filepath = os.path.join(os.path.basename(bpy.data.filepath), filename)
+filepath = os.path.join(os.path.dirname(bpy.data.filepath), filename)
exec(compile(open(filepath).read(), filepath, 'exec'))