From f84b113b5e44c2011f170025b924dd78edede10a Mon Sep 17 00:00:00 2001 From: Arne Augenstein Date: Sat, 24 Jan 2015 08:53:34 +0100 Subject: [PATCH] fixing handling of relative paths --- platformio/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platformio/util.py b/platformio/util.py index a5c015f3..0cfb389c 100644 --- a/platformio/util.py +++ b/platformio/util.py @@ -4,7 +4,7 @@ import json from os import name as os_name from os import getcwd, getenv, listdir, makedirs, utime -from os.path import dirname, expanduser, isdir, isfile, join, realpath +from os.path import dirname, expanduser, isdir, isfile, join, realpath, abspath from platform import system, uname from subprocess import PIPE, Popen @@ -51,7 +51,7 @@ def get_lib_dir(): config = get_project_config() if (config.has_section("platformio") and config.has_option("platformio", "lib_dir")): - lib_dir = config.get("platformio", "lib_dir") + lib_dir = abspath(config.get("platformio", "lib_dir")) if lib_dir.startswith("~"): return expanduser(lib_dir) else: