def zipline_root(environ=None):
 if (environ is None):
  environ = os.environ
 root = environ.get('ZIPLINE_ROOT', None)
 if (root is None):
  root = expanduser('~/.zipline')
 return root

def zipline_root ( environ = None ) : if ( environ is None ) : environ = os . environ root = environ . get ( 'ZIPLINE_ROOT' , None ) if ( root is None ) : root = expanduser ( '~/.zipline' ) return root
get the root directory for all zipline-managed files .