Configure Notepad++ to run a python script

 Install python (2.7.4)

  1. Download the python 2.7.4 windows installer from

  2. Run through the installer using the default settings for everything. It should install python in the folder: C:\Python27. If you’re using a different version of python, just substitute out the version number wherever you see 27.

 Install Notepad++

  1. From, download the Notepad++ installer.

  2. Run through the installer using the default settings for everything.
    Open Notepad++

 Configure Notepad++ to run a python script

  1. Open up a command prompt
  2. Run the following command:

set PATH=%PATH%;C:\Python27

Note: If your version of python was installed in a different location, make sure to substitute out that location with the one in the command.

You can use the following command to make sure the python path was added to the PATH variable:

echo %PATH%

You should see the location of the python directory at the end of the output.

  1. Switch back to Notepad++, and go up to the menu bar, select Run, and then select Run… (F5)

  2. Insert the following in the text box that appears:

    C:\Python27\python.exe -i "$(FULL_CURRENT_PATH)"

  3. Click Save…

  4. Configure CTRL+R to be the command. Give it a name, and press OK.

Now whenever you want to run the python script you’re working on, press CTRL+R and it will be executed. Also you should see the window stay opened after command execution for debugging purposes because of the -i flag. Remove it if you don’t want that feature.


Now read this

Splunk Deployment Server: Grab all deployment clients

There are times when you need to know what’s out there. If you’re like me, you have thousands of deployment clients in the environment, and browsing to the GUI interface to see your forwarders just doesn’t cut it. The following can be... Continue →