1 # vi: encoding=utf-8 ts=8 sts=4 sw=4 et
7 if os.environ.has_key('HOME'):
8 path=os.environ['HOME']
10 path='../../' # cgi-bin interface
12 f=open(path+'/.ftpadmrc', 'r')
14 for line in f.readlines():
15 if line[0] == '#' or string.find(line, '=') == -1:
17 tuple=string.split(string.strip(line), '=')
18 if tuple[1][0] == '"':
19 value[string.strip(tuple[0])]=tuple[1][1:-1]
21 value[string.strip(tuple[0])]=string.strip(tuple[1])