Fix absolute paths for CI

This commit is contained in:
Ivan Kravets
2015-05-15 13:56:19 +02:00
parent 40322e0f9b
commit ccfc9afba7
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
VERSION = (2, 0, "0.dev5")
VERSION = (2, 0, "0.dev6")
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio"

View File

@ -3,7 +3,7 @@
from glob import glob
from os import environ, makedirs, remove
from os.path import basename, isdir, isfile, join
from os.path import abspath, basename, isdir, isfile, join
from shutil import copyfile, copytree, rmtree
from tempfile import mkdtemp
@ -104,6 +104,7 @@ def _copy_contents(dst_dir, contents):
}
for path in contents:
path = abspath(path)
if isdir(path):
items['dirs'].add(path)
elif isfile(path):
@ -133,6 +134,7 @@ def _exclude_contents(dst_dir, patterns):
for p in patterns:
contents += glob(join(dst_dir, p))
for path in contents:
path = abspath(path)
if isdir(path):
rmtree(path)
elif isfile(path):