X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=install.py;h=2a0f8fab87df362b33f7944bf9dea94c8cc74561;hp=d237e0ffc8b1d62a3ed36e28eb3947551eb33f3e;hb=3c382bc5b8276dc49fb4cbf66a6b3e83ccd13527;hpb=e483272c36cc1c8b5f0710b37a9a65e987de7cd2 diff --git a/install.py b/install.py index d237e0ff..2a0f8fab 100644 --- a/install.py +++ b/install.py @@ -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):