Skip to content

Instantly share code, notes, and snippets.

@Koc
Forked from zhuzhuor/run_script.bat
Created September 21, 2017 15:05
Show Gist options
  • Save Koc/cdd593d391f9d34caf8275f359f0bce6 to your computer and use it in GitHub Desktop.
Save Koc/cdd593d391f9d34caf8275f359f0bce6 to your computer and use it in GitHub Desktop.
Batch file to run a Python script in the same folder
@ECHO off
set "script_path=%~dp0"
set "script_path=%script_path%my_script.py"
python %script_path% %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment