~comnets/openwns-wrowser/test

« back to all changes in this revision

Viewing changes to wrowser/Configuration.py

  • Committer: Sebastian Max
  • Date: 2009-04-01 13:24:29 UTC
  • Revision ID: smx@comnets.rwth-aachen.de-20090401132429-gxm3p6bdf8jjg015
All scripts now assume that wrowser is included in the PYTHONPATH

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
        self.parser.set('Sandbox', 'path', getattr(self, 'sandboxPath'))
152
152
        self.parser.set('Sandbox', 'flavour', getattr(self, 'sandboxFlavour'))
153
153
 
154
 
        if 'Wrowser' not in self.parser.sections():
155
 
            self.parser.add_section('Wrowser')
156
 
 
157
 
        path, tail = os.path.split(os.path.abspath(os.path.dirname(sys.argv[0])))
158
 
        self.parser.set('Wrowser', 'path', path)
159
 
 
160
154
        config = file(dbAccessConfFile, 'w')
161
155
        config.write('# Keep this file private. Do NOT change file access permissions. Security hazard!\n\n')
162
156
        self.parser.write(config)