Skip to content

how to copy the .py file into $PATH #181

Answered by newren
zuiop11 asked this question in Q&A
Discussion options

You must be logged in to vote

When you run "git CMD" and CMD is not something that git recognizes as an internal built in (e.g. commit, add, diff, log), then git looks for an executable or a script named "git-CMD". git isn't going to search your entire harddrive for such a thing though, instead it only looks in pre-recorded places where you want the system to look for executables. This list of locations is in a variable known as "PATH".

You can lookup more information about how PATH works at https://en.wikipedia.org/wiki/PATH_(variable).

In most shells on Linux/MacOSX/BSD/etc., you'd modify the path with a command that looks like the following:
export PATH=$PATH:/directory/where/you/placed/the/new/script

You don't hav…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by newren
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants