title: package on sys.path, with init importing names, can be used internally, but not from outside it
body: <p>I have a package my_scripting_library I want to use anywhere on machine. It has an init.py:</p>
  
  <pre><code>from silo_functions import *
  </code></pre>
  
  <p>and looks like</p>
  
  <pre><code>my_scripting_library
    -__init__.py
    -silo_functions.py
    -test_stuff.py
  </code></pre>
  
  <p>test_stuff.py looks like:</p>
  
  <pre><code>#!/usr/bin/env python
  
  from silo_functions import *
  
  lines = read_lines('filepath.py')
  
  print lines
  </code></pre>
  
  <p>in bashrc:</p>
  
  <pre><code>export PYTHONPATH="${PYTHONPATH}:$LIBRARY"
  </code></pre>
  
  <p>where LIBRARY is a correct filepath to my_scripting_library</p>
  
  <pre><code>In [1]: import sys
  
  In [2]: sys.path
  Out[2]: 
  ['',
   '/usr/bin',
   '/usr/lib/python2.7/site-packages/lxml-3.3.3-py2.7-linux-x86_64.egg',
   '/home/cchilders/scripts/python/my_scripting_library',
  ...
   '/home/cchilders/.ipython']
  </code></pre>
  
  <p>running test_stuff with <code>from .silo_functions import *</code> causes:</p>
  
  <pre><code>Traceback (most recent call last):
    File "./test_stuff.py", line 3, in &lt;module&gt;
      from .silo_functions import *
  ValueError: Attempted relative import in non-package
  </code></pre>
  
  <p>running test_stuff with <code>from my_scripting_library.silo_functions import *</code> causes:</p>
  
  <pre><code>Traceback (most recent call last):
    File "./test_stuff.py", line 3, in &lt;module&gt;
      from my_scripting_library.silo_functions import *
  ImportError: No module named my_scripting_library.silo_functions
  </code></pre>
  
  <p>but running test_stuff with <code>from silo_functions import *</code> works:</p>
  
  <p><em>it prints the lines</em></p>
  
  <p>Of course I can't use this package from other folders, which is the real issue- I don't want to be forced into throwing all scripts in this one place. This is causing huge problems as I am constantly reusing dozens of functions each script, and over 5 tutorials on making a folder a python package never have worked yet. Why is something on the python path with an init not a package? Thank you</p>