~openerp/openobject-server/5.0

« back to all changes in this revision

Viewing changes to bin/tools/config.py

  • Committer: ced
  • Date: 2007-06-11 11:10:47 UTC
  • Revision ID: ced-5040a2a33469b094dd0fa2a7ca9a3e60d3547708
KERNEL: add win32 compile

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
                # if the server is run by an unprivileged user, he has to specify location of a config file where he has the rights to write,
126
126
                # else he won't be able to save the configurations, or even to start the server...
127
127
                if os.name == 'nt':
128
 
                        rcfilepath = os.path.join(os.path.split(os.path.split(os.path.abspath(sys.argv[0]))[0])[0], 'etc', 'tinyerp-server.conf')
 
128
                        rcfilepath = os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), 'tinyerp-server.conf')
129
129
                else:
130
130
                        rcfilepath = os.path.expanduser('~/.terp_serverrc')
131
131