1 import os
2 import logging
3 logging.basicConfig(level=logging.DEBUG, datefmt='%m/%d/%Y %I:%M:%S %p',
4 format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
5 logger = logging.getLogger(name='bigjob')
6
7
8
9 version = "latest"
10
11 try:
12 fn = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", 'VERSION')
13 version = open(fn).read().strip()
14 logger.debug("Loading BigJob version: " + version)
15 except IOError:
16 pass
17
18
19 import ConfigParser
20 CONFIG_FILE="bigjob.conf"
21 conf_file = os.path.dirname(os.path.abspath( __file__ )) + "/../" + CONFIG_FILE
22 config = ConfigParser.ConfigParser()
23 logger.debug ("read configfile: " + conf_file)
24 config.read(conf_file)
25 default_dict = config.defaults()
26 saga = default_dict["saga"]
27
28 if saga.lower() == "bliss":
29 SAGA_BLISS=True
30 else:
31 SAGA_BLISS=False
32
33
34
35 from bigjob.bigjob_manager import bigjob as myBigjob
36 from bigjob.bigjob_manager import subjob as mySubjob
37 from bigjob.bigjob_manager import description as myDescription
38
41
42
45
46
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81