make a simple join function in data/

This commit is contained in:
Bryan Bishop
2013-11-12 23:42:24 -06:00
parent 4ca83d72bf
commit 9c56fcd97d

View File

@@ -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)