Mercurial > eagle-eye
view pyikb/lconf.py @ 166:f7fd2738b9b4
Move Ikariam out of __init__.py to ikariam.py.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 02 Nov 2008 00:59:00 +0800 |
parents | 1c42ae140ad3 |
children |
line wrap: on
line source
import os,string class LoadConfigfile(object): def __init__(self): profile = os.environ["HOME"]+'/.eagleeye.pm' self.cd={} if os.path.isfile(profile): print "Loading Config file." cfile=open(profile,'r') for line in cfile.xreadlines(): if line[0:3]=='$::': con=string.split(line[3:-2]) self.cd[con[0]]=con[2][1:-1] else: print "File don't exist."