~unifield-team/unifield-web/us-1026

« back to all changes in this revision

Viewing changes to openobject/commands.py

  • Committer: Amit Mendapara
  • Date: 2010-08-17 18:54:09 UTC
  • Revision ID: mendapara.amit@gmail.com-20100817185409-91aa5waesjbkax0k
[FIX] Fixed the setup.py script (pip, easy_install issue of installing data files).

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
def get_config_file():
15
15
    setupdir = os.path.dirname(os.path.dirname(__file__))
16
16
    isdevdir = os.path.isfile(os.path.join(setupdir, 'setup.py'))
17
 
 
18
17
    configfile = '/etc/openerp-web.cfg'
19
18
    if isdevdir or not os.path.exists(configfile):
20
 
        configfile = os.path.join(setupdir, "openerp-web.cfg")
21
 
 
 
19
        configfile = os.path.join(setupdir, 'doc', 'openerp-web.cfg')
22
20
    return configfile
23
21
 
24
22
def start():