Added OSError as an exception to catch during install.

Fri, 25 Jun 2010 18:24:29 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 25 Jun 2010 18:24:29 +0200
changeset 363
8bda0881a970
parent 360
4f88085f89b2
child 365
0686ac00256e

Added OSError as an exception to catch during install.

install-i18n.py file | annotate | diff | comparison | revisions
install.py file | annotate | diff | comparison | revisions
--- a/install-i18n.py	Sun Jun 20 14:52:47 2010 +0200
+++ b/install-i18n.py	Fri Jun 25 18:24:29 2010 +0200
@@ -80,6 +80,8 @@
             shutil.copy2(fn, targetDir)
     except IOError as msg:
         sys.stderr.write('IOError: %s\nTry install-i18n as root.\n' % msg)
+    except OSError as msg:
+        sys.stderr.write('OSError: %s\nTry install-i18n with admin rights.\n' % msg)
     
 def main(argv):
     """
--- a/install.py	Sun Jun 20 14:52:47 2010 +0200
+++ b/install.py	Fri Jun 25 18:24:29 2010 +0200
@@ -367,6 +367,10 @@
     except IOError as msg:
         sys.stderr.write('IOError: %s\nTry install as root.\n' % msg)
         sys.exit(7)
+        
+    except OSError as msg:
+        sys.stderr.write('OSError: %s\nTry install with admin rights.\n' % msg)
+        sys.exit(7)
     
     # copy some text files to the doc area
     for name in ["LICENSE.GPL3", "THANKS", "changelog"]:

eric ide

mercurial