__init__.py 196 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
import os

DATAPATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data")

def getDataPath (p=None):
    if p:
        return os.path.join(DATAPATH, p)
    else:
        return data