Fix absolute paths for CI

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

No files matched your search

+1 -1
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"
+3 -1
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):