summaryrefslogtreecommitdiff
path: root/src/leap/platform_init
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-07-10 01:06:25 +0900
committerKali Kaneko <kali@leap.se>2013-07-10 01:10:45 +0900
commita78d603c063204d50fffa7d797e9c82e74471a79 (patch)
tree946eead15193248c8f7ca799e31be66b4bb3d50b /src/leap/platform_init
parent0319c7d5057df89db67f97d5085493eb31d5a817 (diff)
fix path escaping for tuntaposx installer
Diffstat (limited to 'src/leap/platform_init')
-rw-r--r--src/leap/platform_init/initializers.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/leap/platform_init/initializers.py b/src/leap/platform_init/initializers.py
index 0db48bb1..d22d7143 100644
--- a/src/leap/platform_init/initializers.py
+++ b/src/leap/platform_init/initializers.py
@@ -305,13 +305,14 @@ def DarwinInitializer():
ret = msg.exec_()
if ret == QtGui.QMessageBox.Yes:
- installer_path = os.path.join(
- os.getcwd(),
- "..",
- "Resources",
- "tuntap-installer.app")
+ installer_path = os.path.abspath(
+ os.path.join(
+ os.getcwd(),
+ "..",
+ "Resources",
+ "tuntap-installer.app"))
if os.path.isdir(installer_path):
- cmd = ["open %s" % (installer_path,)]
+ cmd = ["open '%s'" % (installer_path,)]
try:
ret = subprocess.call(
cmd, stdout=subprocess.PIPE,