Subversion Repositories SmartDukaan

Rev

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

Rev 3181 Rev 3252
Line 23... Line 23...
23
    try:
23
    try:
24
        environment = os.environ["ENV_TYPE"]
24
        environment = os.environ["ENV_TYPE"]
25
    except KeyError:
25
    except KeyError:
26
        environment = "DEV"
26
        environment = "DEV"
27
    
27
    
28
    cfg_file_name = os.environ["HOME"] + '/code/trunk/PyProj/src/shop2020/config/resources/shop2020.cfg'
28
    cfg_file_name = os.path.dirname(os.path.realpath(__file__)) + '/resources/shop2020.cfg'
29
    
29
    
30
    port = 9999
30
    port = 9999
31
    for opt,arg in opts:
31
    for opt,arg in opts:
32
        if opt in ('-p', "--port"):
32
        if opt in ('-p', "--port"):
33
            port = arg;
33
            port = arg;