I have placed a startup file named "blender_startup.py" in "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\startup" folder but the file does not seem to run automatically when i start blender. The contents are:
import bpy
import os
filename = "P:\\_blenderpython\\helper280.py"
exec(compile(open(filename).read(), filename, 'exec'),globals())
Of course the file helper280.py exists and the above commands run fine when i paste them in the python console.
Any ideas on what might be wrong?
Ppath really works. Try usingCpath too to test, and as Blunder pointed out, do some print statements to see if they come out. – Harry McKenzie Feb 26 '23 at 03:25