diff options
Diffstat (limited to 'pokemontools/data/__init__.py')
-rw-r--r-- | pokemontools/data/__init__.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pokemontools/data/__init__.py b/pokemontools/data/__init__.py new file mode 100644 index 0000000..fcc59e9 --- /dev/null +++ b/pokemontools/data/__init__.py @@ -0,0 +1,15 @@ +""" +Access to data files. +""" + +# hide the os import +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) |