diff options
-rw-r--r-- | pokemontools/data/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
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) |