mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
use toOsSpecific() where it counts
This commit is contained in:
parent
2c7d493513
commit
30e8d98f2c
@ -1139,14 +1139,15 @@ class Installer:
|
||||
curdir = ""
|
||||
for root, dirs, files in self.os_walk(hostDir.toOsSpecific()):
|
||||
for name in files:
|
||||
file = Filename.fromOsSpecific(os.path.join(root, name))
|
||||
basefile = Filename.fromOsSpecific(os.path.join(root, name))
|
||||
file = Filename(basefile)
|
||||
file.makeAbsolute()
|
||||
file.makeRelativeTo(hostDir)
|
||||
outdir = file.getDirname().replace('/', '\\')
|
||||
if curdir != outdir:
|
||||
print >>nsi, ' SetOutPath "$INSTDIR\\%s"' % outdir
|
||||
curdir = outdir
|
||||
print >>nsi, ' File "%s"' % os.path.join(root, name)
|
||||
print >>nsi, ' File "%s"' % (basefile.toOsSpecific())
|
||||
print >>nsi, ' WriteUninstaller "$INSTDIR\\Uninstall.exe"'
|
||||
print >>nsi, ' ; Start menu items'
|
||||
print >>nsi, ' !insertmacro MUI_STARTMENU_WRITE_BEGIN Application'
|
||||
|
Loading…
x
Reference in New Issue
Block a user