title: Where to save my custom scripts so that my python scripts can access the module in the default directory?
body: <p>This is going to be a multi-part question but the ultimate aim is such that I can access custom-made modules/libraries/functions like how I do in native python.</p>
  
  <p><strong>Where are the non-native but <code>pip</code> installed python libraries stored and how to configure my interpreter/IDE to access them?</strong></p>
  
  <p>My users' script all starts with:</p>
  
  <pre><code>#!/usr/bin/env python -*- coding: utf-8 -*- 
  </code></pre>
  
  <p><strong>What's the difference between accessing from <code>/usr/bin</code> and <code>/usr/bin/env</code>, will the custom-made modules that should import like native python modules/packages work?</strong></p>
  
  <p><strong>Should my custom scripts become packages? if so how do I make the user-side code, checks for <code>ImportError</code> and install/setup these packages in the <code>try-except</code>?</strong> e.g.</p>
  
  <pre><code>try:
    import module_x
  except ImportError:
    # Install package, but how to do it within the script?
    pass
  </code></pre>
  
  <p><strong>Is there a place to store my custom scripts such that it imports like a native library?</strong> If so, where? What are the consequences?</p>