summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/_management.py
blob: 4cc582f889d82176ad07ac15a6a9432a86064e4c (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
import os
import shutil
import socket

from twisted.internet import reactor
from twisted.logger import Logger

import psutil
try:
    # TODO - we can deprecate this error
    # psutil < 2.0.0
    from psutil.error import AccessDenied as psutil_AccessDenied
    PSUTIL_2 = False
except ImportError:
    # psutil >= 2.0.0
    from psutil import AccessDenied as psutil_AccessDenied
    PSUTIL_2 = True






# TODO -- finish porting ----------------------------------------------------