summaryrefslogtreecommitdiff
path: root/src/leap/services
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-03-13 11:50:54 -0300
committerTomás Touceda <chiiph@leap.se>2013-03-13 11:50:54 -0300
commitebb2d8c1a01e5273d84273fd5dc3bf735be34fa2 (patch)
tree49fbbdc7f814b63586b48072b59969021021b1a6 /src/leap/services
parentfc80cfd6d393534d71bfd0489557d3b4203cf4fd (diff)
Use expanduser instead of hardcoded string
Diffstat (limited to 'src/leap/services')
-rw-r--r--src/leap/services/eip/vpn.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/services/eip/vpn.py b/src/leap/services/eip/vpn.py
index 3ec32f6f..b9988117 100644
--- a/src/leap/services/eip/vpn.py
+++ b/src/leap/services/eip/vpn.py
@@ -318,10 +318,11 @@ class VPN(QtCore.QThread):
if __name__ == "__main__":
- app = QtGui.QApplication(sys.argv)
-
+ import os
import signal
+ app = QtGui.QApplication(sys.argv)
+
def sigint_handler(*args, **kwargs):
logger.debug('SIGINT catched. shutting down...')
vpn_thread = args[0]
@@ -352,7 +353,7 @@ if __name__ == "__main__":
if provider.load("leap/providers/bitmask.net/provider.json"):
vpn_thread.start(eipconfig=eipconfig,
providerconfig=provider,
- socket_host="/home/chiiph/vpnsock",
+ socket_host=os.path.expanduser("~/vpnsock"),
socket_port="unix")
timer = QtCore.QTimer()