title: Make Python Project Into Command Line Tool
body: <p>I have a python project with multiple files and a cmd.py which uses argparse to parse the arguments, in the other files there are critical functions. What I want to do is: I want to make it so that if in the command line I were to put <code>cmd -p hello.txt</code> it runs that python file. </p>
  
  <p>I was thinking that I could just simply move the cmd.py file to somewhere like <code>/usr/bin/</code> or some other directory included in the <code>$PATH</code>, however since I have other files which work with my <code>cmd.py</code>, there will be multiple files in my <code>/usr/bin</code>.</p>
  
  <p>Another thing that I could do is to make a symbolic link between the <code>cmd.py</code> and <code>/usr/bin/cmd</code> like this: <code>ln -s /path/to/cmd.py /usr/bin/cmd</code>, but then where do i put the cmd.py? and is this best practice?</p>
  
  <p>Note: I intend for this to work on Linux and MacOS X, not windows</p>