import bpy import os script_path = '' # path to script exec(compile(open(script_path).read(), script_path, 'exec'))