mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Fix absolute paths for CI
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
||||||
# See LICENSE for details.
|
# See LICENSE for details.
|
||||||
|
|
||||||
VERSION = (2, 0, "0.dev5")
|
VERSION = (2, 0, "0.dev6")
|
||||||
__version__ = ".".join([str(s) for s in VERSION])
|
__version__ = ".".join([str(s) for s in VERSION])
|
||||||
|
|
||||||
__title__ = "platformio"
|
__title__ = "platformio"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
from glob import glob
|
from glob import glob
|
||||||
from os import environ, makedirs, remove
|
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 shutil import copyfile, copytree, rmtree
|
||||||
from tempfile import mkdtemp
|
from tempfile import mkdtemp
|
||||||
|
|
||||||
@ -104,6 +104,7 @@ def _copy_contents(dst_dir, contents):
|
|||||||
}
|
}
|
||||||
|
|
||||||
for path in contents:
|
for path in contents:
|
||||||
|
path = abspath(path)
|
||||||
if isdir(path):
|
if isdir(path):
|
||||||
items['dirs'].add(path)
|
items['dirs'].add(path)
|
||||||
elif isfile(path):
|
elif isfile(path):
|
||||||
@ -133,6 +134,7 @@ def _exclude_contents(dst_dir, patterns):
|
|||||||
for p in patterns:
|
for p in patterns:
|
||||||
contents += glob(join(dst_dir, p))
|
contents += glob(join(dst_dir, p))
|
||||||
for path in contents:
|
for path in contents:
|
||||||
|
path = abspath(path)
|
||||||
if isdir(path):
|
if isdir(path):
|
||||||
rmtree(path)
|
rmtree(path)
|
||||||
elif isfile(path):
|
elif isfile(path):
|
||||||
|
Reference in New Issue
Block a user