diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-11-12 23:42:24 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-11-12 23:42:24 -0600 |
commit | 9c56fcd97d73e96d43d96a661113a2d8b723dccd (patch) | |
tree | 9e930aecc654e09a2d18dbaaca3c7390c3419ec0 | |
parent | 4ca83d72bf1b289160796734666966af8bd1612c (diff) |
make a simple join function in data/
-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) |