diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-10-25 17:32:31 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-10-29 12:35:30 -0300 |
commit | d6a40020d89a1dfab6c49aa710b6e84bc91140b6 (patch) | |
tree | f85bac152bb2682f31044f8c169b6cf93dd90df3 /src/leap/bitmask/services/eip/darwinvpnlauncher.py | |
parent | aa9b0460a9320a0ec12e45e75011fce6b102ac58 (diff) |
Handle encoding problems in the vpn connection.
Diffstat (limited to 'src/leap/bitmask/services/eip/darwinvpnlauncher.py')
-rw-r--r-- | src/leap/bitmask/services/eip/darwinvpnlauncher.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/bitmask/services/eip/darwinvpnlauncher.py b/src/leap/bitmask/services/eip/darwinvpnlauncher.py index f3b6bfc8..fe3fe4c1 100644 --- a/src/leap/bitmask/services/eip/darwinvpnlauncher.py +++ b/src/leap/bitmask/services/eip/darwinvpnlauncher.py @@ -21,6 +21,7 @@ import commands import getpass import logging import os +import sys from leap.bitmask.services.eip.vpnlauncher import VPNLauncher from leap.bitmask.services.eip.vpnlauncher import VPNLauncherException @@ -185,6 +186,8 @@ class DarwinVPNLauncher(VPNLauncher): :rtype: dict """ + ld_library_path = os.path.join(get_path_prefix(), "..", "lib") + ld_library_path.encode(sys.getfilesystemencoding()) return { - "DYLD_LIBRARY_PATH": os.path.join(get_path_prefix(), "..", "lib") + "DYLD_LIBRARY_PATH": ld_library_path } |