terom@19: # config terom@19: terom@19: # location of DeGAL itself terom@19: terom@19: DEGAL_PATH = "/mnt/photos/public" terom@19: terom@19: terom@19: terom@18: if __name__ == '__main__' : terom@18: raise Exception("Don't access inc.py directly") terom@18: terom@18: # setup env terom@18: terom@18: import sys terom@18: import os, os.path terom@18: terom@19: #def splitn (path, n) : terom@19: # for i in xrange(0, n) : terom@19: # path = os.path.split(path)[0] terom@19: # terom@19: # return path terom@19: # terom@19: #degal_path = splitn(os.path.join(os.getcwd(), __file__), 2) terom@18: terom@19: os.chdir(DEGAL_PATH) terom@19: sys.path.append(DEGAL_PATH) terom@19: