title: How to make python import an identically named module from the local directory instead site-packages?
body: <p>I'm a bit confused on how python separates between modules installed in site-packages and modules in the local directory if they have identical names and what's the best way to make python import the module from the local directory instead of the installed one. </p>
  
  <p>Basically I have a command line app and I'm using this to install it with setup.py  </p>
  
  <pre><code>setup(
        name='app',
        version='0.5.2',
        packages=find_packages(),
        entry_points={
            'console_scripts': [
                'katana = app.main:main'
            ]
        }
  )
  </code></pre>
  
  <p>The problem I having is that when I'm run main.py from my source folder and do:</p>
  
  <pre><code>import app.script_A
  </code></pre>
  
  <p>instead of src/scriptA.py (same folder as main.py) it imports the installed module from</p>
  
  <pre><code>/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/app-0.5.2-py3.5.egg!/app/scriptA.py
  </code></pre>
  
  <p>So what is the proper way to solve this, if I want to still be able to install the module system wide with setuptools, but when running the main.py from the source folder manually I want it to import all the modules from that folder instead of Library?</p>