I have a Blender python script in my Blender file
import bpy print(variable)
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.
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community