]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - install.py
GPL text in windows installer
[xonotic/netradiant.git] / install.py
index d237e0ffc8b1d62a3ed36e28eb3947551eb33f3e..2a0f8fab87df362b33f7944bf9dea94c8cc74561 100644 (file)
@@ -35,11 +35,8 @@ def assertMessage(condition, message):
     
 def copyFile(source, target):
   assertMessage(os.path.isfile(source), "failed to find file: " + source)
-  targetFile = target
-  if os.path.isdir(targetFile):
-    targetFile = os.path.join(target, os.path.basename(source))
-  print source, "->", targetFile
-  shutil.copyfile(source, targetFile)
+  print source, "->", target
+  shutil.copy2(source, target)
   
 def copyFileIfExists(source, target):
   if os.path.exists(source):