diff options
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/base/set_configs.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docker/base/set_configs.py b/docker/base/set_configs.py index 19415c6fc..941e74ca2 100644 --- a/docker/base/set_configs.py +++ b/docker/base/set_configs.py @@ -86,11 +86,13 @@ def copy_files(data): else: # Source is a directory for src in os.listdir(source_path): - LOG.info('Copying {} to {}'.format(src, dest_path)) + LOG.info('Copying {} to {}'.format( + os.path.join(source_path, src), dest_path)) + if os.path.isdir(src): - shutil.copytree(src, dest_path) + shutil.copytree(os.path.join(source_path, src), dest_path) else: - shutil.copy(src, dest_path) + shutil.copy(os.path.join(source_path, src), dest_path) def set_permissions(data): |
