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

exabgp.environment.getenv()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
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