]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - install.py
Fixed dbghelp.dll issue on Linux, copy is now OS-dependant
[xonotic/netradiant.git] / install.py
index a9e585c680a948cf65ce502e91dfcf6328842afd..601ef6b49e3d48b36bc7e4e7bc1a2d75438717b9 100644 (file)
@@ -26,6 +26,7 @@ Copies files from various locations:
 """
 
 import os
+import sys
 import shutil
 
 def assertMessage(condition, message):
@@ -114,8 +115,9 @@ copyFileIfExists(libmhash, installRoot)
 
 copySvn("../msvc_redist", installRoot)
 
-dbghelp = os.path.normpath(os.path.join(thisDir, "../msvc_redist/dbghelp.dll"))
-copyFileIfExists(dbghelp, installRoot)
+if sys.platform[:3] == "win" :
+       dbghelp = os.path.normpath(os.path.join(thisDir, "../msvc_redist/dbghelp.dll"))
+       copyFileIfExists(dbghelp, installRoot)
 
 # create version files
 version = open(os.path.join(thisDir, "include/version.default"), "rt").readline().split(".")