From 9c56fcd97d73e96d43d96a661113a2d8b723dccd Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Tue, 12 Nov 2013 23:42:24 -0600 Subject: make a simple join function in data/ --- pokemontools/data/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pokemontools/data/__init__.py b/pokemontools/data/__init__.py index 1a0bf7b..fcc59e9 100644 --- a/pokemontools/data/__init__.py +++ b/pokemontools/data/__init__.py @@ -7,3 +7,9 @@ import os as _os # path to where these files are located path = _os.path.abspath(_os.path.dirname(__file__)) + +def join(filename, path=path): + """ + Construct the absolute path to the file. + """ + return _os.path.join(path, filename) -- cgit v1.2.3