summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/core/__init__.py
blob: 9b11007cd28ace9e7a8cda667c897c389ed843bc (plain)
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
import platform
import os

# FIXME some temporary imports to make the modules
# appear in the coverage report. Remove the imports when
# test code cover them.


def dummy_imports():
    import service
    import dispatcher
    try:
        import uuid_map
        import mail_services
    except ImportError:
        pass


APPNAME = "bitmask.core"
if platform.system() == 'Windows':
    ENDPOINT = "tcp://127.0.0.1:5001"
elif os.getenv('SNAP'):
    ENDPOINT = "ipc://%s/%s.sock" % (os.getenv('SNAP'), APPNAME)
else:
    ENDPOINT = "ipc:///tmp/%s.sock" % APPNAME

dummy_imports()