Menu

Config directory

david
2014-01-17
2014-01-27
  • david

    david - 2014-01-17

    Does anyone know how to obtain the Config directory (location scripts are installed in Notepad++) from within a script?

     
  • Dave Brotherstone

    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.