Test Failed
Push — master ( db4166...efa4d0 )
by Thomas
11:36
created

exabgp.environment   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A getenv() 0 2 1
1
# this is where the environment should be taken from
2
# it makes sure the environment is setup before it is imported
3
import exabgp.environment.setup
4
5
from exabgp.environment.environment import Env
6
7
from exabgp.environment.base import APPLICATION
8
from exabgp.environment.base import ENVFILE
9
from exabgp.environment.base import ROOT
10
from exabgp.environment.base import ETC
11
12
# As soon as we import anything, a COPY is made in the local
13
# namespace, it mean that we can not import the GlobalHashTable
14
# directly but must ask for a copy to be made each time
15
# at the time of import, so using a function get around it
16
from exabgp.environment.hashtable import GlobalHashTable as __
17
18
19
def getenv():
20
    return __()
21