how could i compile and update dependencies automatically? I find this custom driver on templates / python / driver_functions
and I did it run.
But I realize that always I close and reopen the file, it need to be compiled and updated in the driver.
I try this but it doesn't compile in the open file and also I don't know how to update all dependencies after
import bpy
import os
import sys
   
if __name__ == &quot;__main__&quot;:
    path = &quot;F:/fILES/proyectos/bpy_study/Scripts&quot; 
    fname01 = &quot;driver_functions.py&quot;
       
    if path not in sys.path:
        sys.path.append(path)

    file01 = os.path.join(path, fname01)

    exec(compile(open(file01).read(), fname01, 'exec'))
It was easy to do, just turn on the checkbox register in Menu/ Text/ Register
and the next time to open blender it is run automatically