# -*- coding: utf8 - *-
"""For accessing vcspull as a package.

libunihan.unihan
~~~~~~~~~~~~~~~~

:copyright: Copyright 2013 Tony Narlock.
:license: BSD, see LICENSE for details

"""

from __future__ import absolute_import, division, print_function, with_statement


def main():
    print('hi')

@@ -264,33 +264,520 @@
 nt%0A%0A
-%0Adef main():%0A    print('hi'
+from pkg_resources %5C%0A    import resource_filename  # @UnresolvedImport #pylint: disable=E0611%0Aimport zipfile%0Aimport csv%0A%0A%0Adef get_datafile(file_):%0A    return resource_filename(__name__, 'data/' + file_)%0A%0A%0Adef main():%0A    print('%25s' %25 get_datafile('Unihan.zip'))%0A    z = zipfile.ZipFile(get_datafile('Unihan.zip'))%0A    print(%5Bf.filename for f in z.filelist%5D)%0A%0A    with open(get_datafile('Unihan_Readings.txt'), 'rb') as csvfile:%0A        r = csv.reader(csvfile)%0A        for row in r:%0A            print(', '.join(row)
 )%0A

test reading csv file, retreiving datafiles