import os import Npp Npp.notepad.open(os.path.dirname(os.path.abspath(__file__)) + "\\settings.ini")