mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Fix LDF lib resolving
This commit is contained in:
@ -163,13 +163,12 @@ class LibBuilderBase(object):
|
|||||||
p2 = p2.lower()
|
p2 = p2.lower()
|
||||||
if p1 == p2:
|
if p1 == p2:
|
||||||
return True
|
return True
|
||||||
p1 = p1 + os.path.sep
|
if os.path.commonprefix([p1 + os.path.sep, p2]) == p1 + os.path.sep:
|
||||||
if os.path.commonprefix([p1, p2]) == p1:
|
|
||||||
return True
|
return True
|
||||||
# try to resolve paths
|
# try to resolve paths
|
||||||
p1 = os.path.os.path.realpath(p1)
|
p1 = os.path.os.path.realpath(p1)
|
||||||
p2 = os.path.os.path.realpath(p2)
|
p2 = os.path.os.path.realpath(p2)
|
||||||
return os.path.commonprefix([p1, p2]) == p1
|
return os.path.commonprefix([p1 + os.path.sep, p2]) == p1 + os.path.sep
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
|
Reference in New Issue
Block a user