view pyikriam/lconf.py @ 102:94c9cde99e19

check the ally by right phe ally page, not counting the members we scanned.
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Wed, 29 Oct 2008 12:07:19 +0800
parents 19d2a7b175b3
children d4b7d8f51e9f
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."