mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Resovle symlink based on the saved cwd
This commit is contained in:
@ -34,7 +34,7 @@ class PackageManagerSymlinkMixin(object):
|
|||||||
spec = PackageSpec(**data["spec"])
|
spec = PackageSpec(**data["spec"])
|
||||||
assert spec.symlink
|
assert spec.symlink
|
||||||
with fs.cd(data["cwd"]):
|
with fs.cd(data["cwd"]):
|
||||||
pkg_dir = os.path.realpath(pkg_dir)
|
pkg_dir = os.path.realpath(spec.uri[10:])
|
||||||
return (pkg_dir if os.path.isdir(pkg_dir) else None, spec)
|
return (pkg_dir if os.path.isdir(pkg_dir) else None, spec)
|
||||||
|
|
||||||
def get_symlinked_package(self, path):
|
def get_symlinked_package(self, path):
|
||||||
|
Reference in New Issue
Block a user