[izpack-changes] r1989 - izpack-utils/trunk/izpack2exe

noreply at berlios.de noreply at berlios.de
Thu Jan 17 22:50:51 CET 2008


Author: jponge
Date: 2008-01-17 22:50:49 +0100 (Thu, 17 Jan 2008)
New Revision: 1989

Modified:
   izpack-utils/trunk/izpack2exe/izpack2exe.py
Log:
Make sure the SFX path is resolved also when launched from another directory than the one containing the script (Pascal Quesseveur)


Modified: izpack-utils/trunk/izpack2exe/izpack2exe.py
===================================================================
--- izpack-utils/trunk/izpack2exe/izpack2exe.py	2008-01-17 21:14:24 UTC (rev 1988)
+++ izpack-utils/trunk/izpack2exe/izpack2exe.py	2008-01-17 21:50:49 UTC (rev 1989)
@@ -56,7 +56,8 @@
     config.write(';!@InstallEnd@!\r\n')
     config.close()
 
-    files = ['7zS.sfx', 'config.txt', 'installer.7z']
+    sfx = os.path.join(os.path.dirname(settings.p7z), '7zS.sfx')
+    files = [sfx, 'config.txt', 'installer.7z']
     output = open(settings.output, 'wb')
     for f in files:
         in_file = open(f, 'rb')



More information about the izpack-changes mailing list