cgi-bin/inc.py
author Tero Marttila <terom@fixme.fi>
Thu, 11 Jun 2009 21:26:05 +0300
branchthreaded-tasks
changeset 89 4b254a90d6d0
parent 41 3b1579a7bffb
permissions -rw-r--r--
add task_threads config setting
# 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)