def get_ipython_package_dir():
 ipdir = os.path.dirname(IPython.__file__)
 return py3compat.cast_unicode(ipdir, fs_encoding)

def get_ipython_package_dir ( ) : ipdir = os . path . dirname ( IPython . __file__ ) return py3compat . cast_unicode ( ipdir , fs_encoding )
get the base directory where ipython itself is installed .