Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have a Blender python script in my Blender file
and an external .py file in the same directory as the .blend file.
variable = "spam"
I want to import the external file into Blender using a relative path.
You can append the path to your script
import bpy, sys
Required, but never shown