author | terom |
Thu, 31 Jan 2008 19:13:00 +0000 | |
changeset 28 | 70b6c13d084f |
parent 19 | 8d3ffd87cb0b |
permissions | -rw-r--r-- |
# config # location of DeGAL itself DEGAL_PATH = "/mnt/photos/public" if __name__ == '__main__' : raise Exception("Don't access inc.py directly") # setup env import sys import os, os.path #def splitn (path, n) : # for i in xrange(0, n) : # path = os.path.split(path)[0] # # return path # #degal_path = splitn(os.path.join(os.getcwd(), __file__), 2) os.chdir(DEGAL_PATH) sys.path.append(DEGAL_PATH)