Skip to content

Commit

Permalink
Tiny update on cij/data
Browse files Browse the repository at this point in the history
chazeon committed Jan 2, 2021
1 parent ffdda7c commit 4e69000
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cij/data/__init__.py
Original file line number Diff line number Diff line change
@@ -3,6 +3,9 @@

__path__ = Path(__file__).absolute().parent

def get_data_fname(fname) -> str:
def get_data_fname(fname: str) -> str:
'''
Get the full path of the data file from its relative path.
'''
return pkg_resources.resource_filename(__name__, fname)

0 comments on commit 4e69000

Please sign in to comment.