From e78c546976083146e39fee8b871e30d6debf27eb Mon Sep 17 00:00:00 2001 From: Steven Senior Date: Mon, 17 Feb 2014 14:59:38 +0000 Subject: [PATCH] removed reference to my own home directory --- Titanium.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Titanium.py b/Titanium.py index 6cc9479..dd9f205 100644 --- a/Titanium.py +++ b/Titanium.py @@ -2,7 +2,7 @@ import sublime_plugin import json import subprocess -#from pprint import pprint +from os.path import expanduser class TitaniumCommand(sublime_plugin.WindowCommand): @@ -286,7 +286,7 @@ def load_ios_info(self): for name, obj in list(info["ios"].items()): if name == "certs": - for target, c in list(obj["keychains"]["/Users/stevensenior/Library/Keychains/login.keychain"].items()): + for target, c in list(obj["keychains"][expanduser("~") + "/Library/Keychains/login.keychain"].items()): if target == "wwdr" or (target == "developer" and self.target != "device") or (target == "distribution" and self.target == "device"): continue l = [] @@ -307,4 +307,4 @@ def load_ios_info(self): l = [] for a in obj: l.append([a['name'], a['udid']]) - self.devices = l \ No newline at end of file + self.devices = l