import bpy, sys from pathlib import Path path = Path(bpy.data.filepath) sys.path.append(str(path.parent.parent.parent.parent.parent) + "Blender Scripts") import test_import test_import.print_a_message()