title: How to define a system-wide alias for a Python script?
body: <p>I am working on Mac OS X and I have a Python script which is going to be called by other scripts and programs (Apple's launchd in particular). I could call it with</p>
  
  <pre><code>python /Users/xyz/long/absolute/path/to/script.py arg1 arg2
  </code></pre>
  
  <p>Since the location of the script might change, I want to decouple other scripts and the launchd configuration files from the actual location,  so that a call to the script looks like</p>
  
  <pre><code>script arg1 arg2
  </code></pre>
  
  <p>Defining an alias for Bash in $HOME/.bash_profile does not work, since launchd does not know about the alias. </p>
  
  <p>What is the best way to define a "sytem-wide alias" or something equivalent?</p>