Fixed an issue in the install script trying to install without admin rights.

Sat, 22 Oct 2011 19:54:23 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 22 Oct 2011 19:54:23 +0200
changeset 1385
9eaf0cda4fb4
parent 1381
b66bcd609f83
child 1386
58b3f5b5021e

Fixed an issue in the install script trying to install without admin rights.

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Sat Oct 22 19:50:47 2011 +0200
+++ b/install.py	Sat Oct 22 19:54:23 2011 +0200
@@ -348,12 +348,12 @@
             pass
         
     except IOError as msg:
-        sys.stderr.write('IOError: %s\nTry install with admin rights.\n' % msg)
-        sys.exit(7)
+        sys.stderr.write('IOError: {0}\nTry install with admin rights.\n'.format(msg))
+        exit(7)
         
     except OSError as msg:
-        sys.stderr.write('OSError: %s\nTry install with admin rights.\n' % msg)
-        sys.exit(7)
+        sys.stderr.write('OSError: {0}\nTry install with admin rights.\n'.format(msg))
+        exit(7)
 
 
 def installEric():

eric ide

mercurial