On Tue, Oct 24, 2017 at 9:12 AM, Zachary Turner via lldb-commits <lldb-commits@lists.llvm.org> wrote: > I think there's something like lit.util.which(), or a similar function in > lldb test utilities. Seems like we could solve this by writing the > function: > > ``` > def is_exe(fpath): > if not os.path.exists(fpath): > fpath = lit.util.which(fpath) > if not (fpath and os.path.exists(fpath)): > sys.exit(-1) > return is_exe(fpath) > > return os.path.isfile(fpath) and os.access(fpath, os.X_OK) > ``` >
Yes, makes sense. Pavel, WDYT? Also, If you give me a link to the bot I'll take a look at the conf and try to reproduce (still puzzled as I haven't received the blame mail). Thanks, -- Davide _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits