From 8008f87ffa8a6ad56275a31f8a7dfba9c543f3fe Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 13 Jul 2017 00:51:04 +0300 Subject: [PATCH] Manage project libraries with "--storage-dir" option --- platformio/commands/lib.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platformio/commands/lib.py b/platformio/commands/lib.py index 5a4c9fbc..0d20e281 100644 --- a/platformio/commands/lib.py +++ b/platformio/commands/lib.py @@ -66,6 +66,9 @@ def cli(ctx, **options): "Please use `platformio lib --global %s` command to remove " "this warning." % ctx.invoked_subcommand, fg="yellow") + elif util.is_platformio_project(storage_dir): + with util.cd(storage_dir): + storage_dir = util.get_projectlibdeps_dir() if not storage_dir and not util.is_platformio_project(): raise exception.NotGlobalLibDir(util.get_project_dir(),