Subversion Repositories SmartDukaan

Rev

Rev 14152 | Rev 14155 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14152 Rev 14154
Line 3... Line 3...
3
 
3
 
4
@author: amit
4
@author: amit
5
'''
5
'''
6
#!/usr/bin/python    
6
#!/usr/bin/python    
7
import ConfigParser
7
import ConfigParser
-
 
8
import os
8
config = ConfigParser.RawConfigParser()
9
config = ConfigParser.RawConfigParser()
9
config.read('ConfigFile.properties')
10
config.read('./ConfigFile.properties')
-
 
11
__location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))
-
 
12
config.read(os.path.join(__location__, 'ConfigFile.properties'))
10
 
13
 
11
def getConfig(propertyName):
14
def getConfig(propertyName):
12
    global config
15
    global config
13
    value = config.get('PROD', propertyName)
16
    value = config.get('PROD', propertyName)
14
    if value is None:
17
    if value is None: