-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathcommon.py
28 lines (24 loc) · 1.03 KB
/
common.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -----------------------------------------------------------------------------
#
# Copyright (C) 2021 CERN & University of Surrey for the benefit of the
# BioDynaMo collaboration. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# See the LICENSE file distributed with this work for details.
# See the NOTICE file distributed with this work for additional information
# regarding copyright ownership.
#
# -----------------------------------------------------------------------------
import os
import shutil
from print_command import Print
def CopySupportFiles(sim_name):
SUPPORT_DIR = os.path.join(os.environ["BDMSYS"], "share", "util",
"support_files")
Print.new_step("Copy additional support files")
for filename in os.listdir(SUPPORT_DIR):
full_file_name = os.path.join(SUPPORT_DIR, filename)
if os.path.isfile(full_file_name):
shutil.copy(full_file_name, sim_name)