Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion benchpress/plugins/hooks/copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import shutil

from benchpress.lib.hook import Hook
from benchpress.lib.util import get_artifacts_dir
from benchpress.lib.util import BENCHPRESS_ROOT, get_artifacts_dir

logger = logging.getLogger(__name__)

Expand All @@ -28,6 +28,8 @@ class CopyMoveHook(Hook):
def do_copy_or_move(sources, dest, move=False):
expanded_sources = []
for src in sources:
if not os.path.isabs(src):
src = os.path.join(BENCHPRESS_ROOT, src)
expanded_sources.extend(glob.glob(src))
if not os.path.isdir(dest):
os.mkdir(dest)
Expand Down
Loading