Configure Notepad++ to run a python script

Install python (2.7.4) #

  1. Download the python 2.7.4 windows installer from http://www.python.org/download/

  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 http://notepad-plus-plus.org/download, 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.

 
2
Kudos
 
2
Kudos

Now read this

RetroPie: Raspberry Pie Retro Gaming Setup

What I’m going to show you how to configure # Raspberry Pi running the Raspbian OS Boot into emulationstation, a GUI frontend to RetroArch allowing you to select any emulators’ games Use of xboxdrv to use an xbox controller to play with... Continue →