~comnets/openwns-wrowser/test

« back to all changes in this revision

Viewing changes to wrowser/simdb/Campaigns.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:
25
25
#
26
26
###############################################################################
27
27
 
28
 
import sys
29
 
import os
30
 
import ConfigParser
31
 
configParser = ConfigParser.SafeConfigParser()
32
 
configParser.read(os.path.join(os.environ['HOME'], '.wns', 'dbAccess.conf'))
33
 
if 'Wrowser' not in configParser.sections():
34
 
    print "ERROR! Path to wrowser not in dbAccess.conf"
35
 
    exit(0)
36
 
sys.path.append(configParser.get('Wrowser', 'path'))
37
 
 
38
28
import wrowser.simdb.Database as db
39
29
import wrowser.Configuration as conf
40
30