de-cgi-bin/inc.py
changeset 50 724121253d34
parent 49 03ae1dbbb14a
parent 48 20355dd2e61a
child 51 0f39cb5e4b11
equal deleted inserted replaced
49:03ae1dbbb14a 50:724121253d34
     1 # config
       
     2 
       
     3 # location of DeGAL itself
       
     4 
       
     5 DEGAL_PATH = "/mnt/photos/public"
       
     6 
       
     7 
       
     8 
       
     9 if __name__ == '__main__' :
       
    10     raise Exception("Don't access inc.py directly")
       
    11 
       
    12 # setup env
       
    13 
       
    14 import sys
       
    15 import os, os.path
       
    16 
       
    17 #def splitn (path, n) :
       
    18 #    for i in xrange(0, n) :
       
    19 #        path = os.path.split(path)[0]      
       
    20 #    
       
    21 #    return path
       
    22 #        
       
    23 #degal_path = splitn(os.path.join(os.getcwd(), __file__), 2)
       
    24 
       
    25 os.chdir(DEGAL_PATH)
       
    26 sys.path.append(DEGAL_PATH)
       
    27