Browse Source

Fix errors with Windows filenames in CopyFile()

rdb 10 years ago
parent
commit
9f1898b935
1 changed files with 1 additions and 7 deletions
  1. 1 7
      makepanda/makepandacore.py

+ 1 - 7
makepanda/makepandacore.py

@@ -2535,13 +2535,7 @@ def SetupBuildEnvironment(compiler):
 
 def CopyFile(dstfile, srcfile):
     if dstfile[-1] == '/':
-        dstdir = dstfile
-        fnl = srcfile.rfind("/")
-        if fnl < 0:
-            fn = srcfile
-        else:
-            fn = srcfile[fnl+1:]
-        dstfile = dstdir + fn
+        dstfile += os.path.basename(srcfile)
 
     if NeedsBuild([dstfile], [srcfile]):
         if os.path.islink(srcfile):