diff options
author | Kali Kaneko <kali@leap.se> | 2018-01-04 18:38:01 +0100 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2018-01-06 19:57:56 +0100 |
commit | 2b5b79b114423f8d68c992d1bd0bb251e2dfba2b (patch) | |
tree | e18fb30a115cf5358b58727e1e047833ed81cd26 /src/leap/bitmask/gui/housekeeping.py | |
parent | 501379ee09c3510d1737d6292a2dd5732c19dfef (diff) |
[style] pep8
Diffstat (limited to 'src/leap/bitmask/gui/housekeeping.py')
-rw-r--r-- | src/leap/bitmask/gui/housekeeping.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/bitmask/gui/housekeeping.py b/src/leap/bitmask/gui/housekeeping.py index 7069adba..5c1d8079 100644 --- a/src/leap/bitmask/gui/housekeeping.py +++ b/src/leap/bitmask/gui/housekeeping.py @@ -8,6 +8,7 @@ from leap.common.config import get_path_prefix class NoAuthTokenError(Exception): pass + def get_authenticated_url(): url = "http://localhost:7070" path = os.path.join(get_path_prefix(), 'leap', 'authtoken') @@ -26,6 +27,7 @@ def get_authenticated_url(): url += '#' + token return url + def terminate(pid): if os.path.isfile(pid): with open(pid) as f: @@ -33,6 +35,7 @@ def terminate(pid): print('[bitmask] terminating bitmaskd...') os.kill(pidno, signal.SIGTERM) + def reset_authtoken(): prev_auth = os.path.join(get_path_prefix(), 'leap', 'authtoken') try: @@ -40,6 +43,7 @@ def reset_authtoken(): except OSError: pass + def cleanup(): print('[bitmask] cleaning up files') base = os.path.join(get_path_prefix(), 'leap') |