Created
July 30, 2016 19:23
-
-
Save shivshank/b606d4d4d2411c4e04e0de36e2464ac5 to your computer and use it in GitHub Desktop.
A script for running python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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