Commits

Lars Yencken committed 1a601c5

Fixes missing package flag so data is now included.

Comments (0)

Files changed (2)

 #
 
 import pkg_resources
+import codecs
+
+def open_file(filename):
+    return codecs.getreader('utf8')(
+            pkg_resources.resource_stream(__name__, filename)
+        )
+
+def read_file(filename):
+    return pkg_resources.resource_string(__name__, filename).decode('utf8')
 
 # vim: ts=4 sw=4 sts=4 et tw=78:
     setup_requires=['setuptools_hg'],
     package_dir={'cjktools_data': 'data'},
     packages=['cjktools_data'],
+    include_package_data=True,
 )
 
 # vim: ts=4 sw=4 sts=4 et tw=78: