+#Change to absolute path
+def toAbsPath(path):
+ global clientcmd, cmdset
+
+ #Not a absolute path --> make one
+ if path[0] != os.sep:
+
+ #We need the client command to expand the paths...
+ while clientcmd == "" or not cmdset:
+ clientcmd = vim.eval("input('Client commando: ', '%s')" % clientcmd).strip()
+ cmdset = True
+
+ #Get the dirs where executeable is in
+ relcmd = string.split(clientcmd)[0]
+ abscmd = getAbsPath(getCurrentFile(), relcmd)
+ path = getAbsPath(abscmd, path)
+
+ assert(path[0] == "/")
+
+ return path
+