blob: 44f9969b933b876f4ba1fbab73b025e767288a77 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Only copy static files if they do not already exist at the destination
diff --git a/Tensile/TensileCreateLibrary.py b/Tensile/TensileCreateLibrary.py
index 2d63160b..a7ccf268 100644
--- a/Tensile/TensileCreateLibrary.py
+++ b/Tensile/TensileCreateLibrary.py
@@ -738,8 +738,11 @@ def copyStaticFiles(outputPath=None):
for fileName in libraryStaticFiles:
# copy file
- shutil.copy( os.path.join(globalParameters["SourcePath"], fileName), \
- outputPath )
+
+ path = os.path.join(globalParameters["SourcePath"], fileName)
+ if not os.path.isfile(path):
+ shutil.copy( os.path.join(globalParameters["SourcePath"], fileName), \
+ outputPath )
return libraryStaticFiles
|