equal
deleted
inserted
replaced
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 |
|