Does anyone know how to obtain the Config directory (location scripts are installed in Notepad++) from within a script?
notepad.getPluginConfigDir() will get you the plugin config directory, which is the base path for the scripts. Append PythonScript\scripts to that, and you have it
import os scripts_path = os.path.join(notepad.getPluginConfigDir(), "PythonScript\\scripts")
Apologies for the delay in response.
Log in to post a comment.
Does anyone know how to obtain the Config directory (location scripts are installed in Notepad++) from within a script?
notepad.getPluginConfigDir() will get you the plugin config directory, which is the base path for the scripts. Append PythonScript\scripts to that, and you have it
Apologies for the delay in response.