Launch Python script in Git Bash -
i'm writing git commands through python script (on windows) when double click on myscript.py
, commands launched in windows command prompt. execute them in git bash.
any idea how without opening git bash , write python myscript.py
?
in top of python file add #!/usr/bin/python
can rename mv myscript.py myscript
, run chmod 755 myscript
. make can run file ./myscript
adding file directory path or linking path if want able run anywhere.
Comments
Post a Comment