Subversion Repositories SmartDukaan

Rev

Rev 14145 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14141 amit.gupta 1
'''
2
Created on Feb 25, 2015
3
 
4
@author: amit
5
'''
6
#!/usr/bin/python    
7
import ConfigParser
8
config = ConfigParser.RawConfigParser()
9
config.read('ConfigFile.properties')
10
 
11
def getConfig(property):
12
    value = config.get('LOCAL', property)
13
    if value is None:
14
        return config.get('DEFAULT', property)
15
    return value
16
 
17
def main():
18
    print getConfig('USER_LOOKUP_URL')
19
 
20
if __name__ == '__main__':
21
    main()