-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path__init__.py
More file actions
28 lines (23 loc) · 814 Bytes
/
__init__.py
File metadata and controls
28 lines (23 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""
Common library for Data Knowledge Base development.
"""
import sys
__version__ = "0.3-SNAPSHOT"
__all__ = ["dataflow"]
try:
import common
logMsgFormat = '%(asctime)s: (%(levelname)s) %(message)s' \
' (%(name)s)'
# Or, in case of multithreading:
# ' (%(name)s) (%(threadName)s)'
common.logging.configureRootLogger(msg_format=logMsgFormat,
level=common.logging.WARN)
logger = common.logging.getLogger(__name__)
except (SyntaxError, ImportError), err:
raise ImportError("%s (in submodule 'common')" % err)
try:
import dataflow
except (SyntaxError, ImportError), err:
logger.error("Failed to import submodule 'dataflow'")
logger.traceback()
raise ImportError("%s (in submodule 'dataflow')" % err)