Skip to content
Snippets Groups Projects
Commit 28295020 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Merge branch 'new_driver' into 'master'

New driver

See merge request !2
parents fa7689f4 adb1b552
No related branches found
No related tags found
1 merge request!2New driver
Pipeline #
include LICENSE README.rst bootstrap-buildout.py buildout.cfg develop.cfg version.txt requirements.txt include LICENSE README.rst bootstrap-buildout.py buildout.cfg develop.cfg version.txt requirements.txt
recursive-include doc doc/plot doc/img conf.py *.rst *.ico *.png *.py recursive-include doc conf.py *.rst *.ico *.png *.py
include bob/db/iris/iris.data bob/db/iris/iris.names include bob/db/iris/iris.data bob/db/iris/iris.names
...@@ -67,8 +67,9 @@ def data(): ...@@ -67,8 +67,9 @@ def data():
""" """
from .driver import Interface from .driver import Interface
import csv import csv
import pkg_resources
data = Interface().files()[0] data = pkg_resources.resource_filename(__name__, 'iris.data')
retval = {} retval = {}
......
...@@ -21,10 +21,7 @@ class Interface(AbstractInterface): ...@@ -21,10 +21,7 @@ class Interface(AbstractInterface):
The values should be take w.r.t. where the python file that declares the The values should be take w.r.t. where the python file that declares the
database is sitting at. database is sitting at.
''' '''
return []
from pkg_resources import resource_filename
raw_files = ('iris.data', 'iris.names')
return [resource_filename(__name__, k) for k in raw_files]
def version(self): def version(self):
'''Returns the current version number from Bob's build''' '''Returns the current version number from Bob's build'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment