Skip to content

Instantly share code, notes, and snippets.

@shivshank
Created July 30, 2016 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shivshank/b606d4d4d2411c4e04e0de36e2464ac5 to your computer and use it in GitHub Desktop.
Save shivshank/b606d4d4d2411c4e04e0de36e2464ac5 to your computer and use it in GitHub Desktop.
A script for running python
rem add this command to the shortcuts file in Notepad++
rem run_python.bat "$(FULL_CURRENT_PATH)"
@echo off
Set filename=%1
For %%A in (%filename%) do (
Set Folder=%%~dpA
Set Name=%%~nxA
)
cd %Folder%
C:\Python34\python.exe %Name%
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment