Fixed an issue in creating the startup scripts for Windows platforms. 5_1_x

Tue, 25 Oct 2011 19:19:07 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 25 Oct 2011 19:19:07 +0200
branch
5_1_x
changeset 1403
4b5c7f793791
parent 1401
c95428f45a0d
child 1409
cbbd2ebab6de

Fixed an issue in creating the startup scripts for Windows platforms.

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Tue Oct 25 19:11:46 2011 +0200
+++ b/install.py	Tue Oct 25 19:19:07 2011 +0200
@@ -167,15 +167,15 @@
         wname = wfile + ".bat"
         if isGuiScript:
             wrapper = \
-                '''@echo off\r\n''' \
-                '''set PYDIR=%~dp0\r\n''' \
+                '''@echo off\n''' \
+                '''set PYDIR=%~dp0\n''' \
                 '''start "" "%PYDIR%\\pythonw.exe"''' \
                 ''' "{0}\\{1}.pyw"''' \
-                ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\r\n'''.format(pydir, wfile)
+                ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format(pydir, wfile)
         else:
             wrapper = \
                 '''@"{0}\\python" "{1}\\{2}.py"''' \
-                ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\r\n'''.format(
+                ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format(
                     platBinDir, pydir, wfile)
 
     # Mac OS X

eric ide

mercurial