<div dir="ltr"><div class="gmail_default" style><span style="font-size:large">Actually it would return true if path will be a symlink. I checked it.</span></div><div class="gmail_default" style><span style="font-size:large">Also please look at <a href="https://docs.python.org/2/library/os.path.html#os.path.isfile">https://docs.python.org/2/library/os.path.html#os.path.isfile</a></span></div>
<div class="gmail_default" style><span style="font-size:large">"...</span><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:16px;line-height:20.799999237060547px;text-align:justify">This follows symbolic links, so both </span><a class="" href="https://docs.python.org/2/library/os.path.html#os.path.islink" title="os.path.islink" style="color:rgb(53,95,124);text-decoration:none;font-family:sans-serif;font-size:16px;line-height:20.799999237060547px;text-align:justify"><tt class="" style="padding:0px 1px;font-size:0.95em;font-weight:bold;background-color:transparent"><span class="">islink()</span></tt></a><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:16px;line-height:20.799999237060547px;text-align:justify"> and </span><a class="" href="https://docs.python.org/2/library/os.path.html#os.path.isfile" title="os.path.isfile" style="color:rgb(53,95,124);text-decoration:none;font-family:sans-serif;font-size:16px;line-height:20.799999237060547px;text-align:justify"><tt class="" style="padding:0px 1px;font-size:0.95em;font-weight:bold;background-color:transparent"><span class="">isfile()</span></tt></a><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:16px;line-height:20.799999237060547px;text-align:justify"> can be true for the same path.</span><span style="font-size:large">"</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-08 22:54 GMT+04:00 Christopher Larson <span dir="ltr"><<a href="mailto:clarson@kergoth.com" target="_blank">clarson@kergoth.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 8, 2014 at 8:09 AM, Vitaliy Kharin <span dir="ltr"><<a href="mailto:kvserr@gmail.com" target="_blank">kvserr@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="overflow:hidden">Signed-off-by: Vitaliy Kharin <<a href="mailto:vitaliy.kharin@lge.com" target="_blank">vitaliy.kharin@lge.com</a>><br>
---<br>
<span>bitbake</span>/lib/bb/utils.py | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/<span>bitbake</span>/lib/bb/utils.py b/<span>bitbake</span>/lib/bb/utils.py<br>
index 0be45e1..c48b237 100644<br>
--- a/<span>bitbake</span>/lib/bb/utils.py<br>
+++ b/<span>bitbake</span>/lib/bb/utils.py<br>
@@ -809,7 +809,7 @@ def which(path, item, direction = 0, history = False):<br>
for p in paths:<br>
next = os.path.join(p, item)<br>
hist.append(next)<br>
- if os.path.exists(next):<br>
+ if os.path.isfile(next):<br>
if not os.path.isabs(next):<br>
next = os.path.abspath(next)<br>
if history:</div></blockquote></div><br></div></div></div><div class="gmail_extra">This seems questionable to me. With this, it wouldn't find symlinks, no?<span class="HOEnZb"><font color="#888888"><br>-- <br>
Christopher Larson<br>clarson at kergoth dot com<br>
Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>-----------------------<br>Best regards,<br>Vitaliy Kharin
</div>