Corrected an issue in the install.py script.

Fri, 06 Aug 2010 18:53:43 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 06 Aug 2010 18:53:43 +0200
changeset 473
b314592e3d79
parent 454
d28d558f7484
child 474
376734960668

Corrected an issue in the install.py script.

install.py file | annotate | diff | comparison | revisions
diff -r d28d558f7484 -r b314592e3d79 install.py
--- a/install.py	Wed Aug 04 20:33:53 2010 +0200
+++ b/install.py	Fri Aug 06 18:53:43 2010 +0200
@@ -428,10 +428,14 @@
     # create menu entry for Linux systems
     if sys.platform.startswith("linux"):
         if distDir:
-            shutil.copy(os.path.join("eric", "icons", "default", "eric.png"), 
-                os.path.normpath(os.path.join(distDir, "/usr/share/pixmaps")))
-            shutil.copy(os.path.join("eric", "eric5.desktop"), 
-                os.path.normpath(os.path.join(distDir, "/usr/share/applications")))
+            dst = os.path.normpath(os.path.join(distDir, "usr/share/pixmaps"))
+            if not os.path.exists(dst):
+                os.makedirs(dst)
+            shutil.copy(os.path.join("eric", "icons", "default", "eric.png"), dst)
+            dst = os.path.normpath(os.path.join(distDir, "usr/share/applications"))
+            if not os.path.exists(dst):
+                os.makedirs(dst)
+            shutil.copy(os.path.join("eric", "eric5.desktop"), dst)
         else:
             shutil.copy(os.path.join("eric", "icons", "default", "eric.png"), 
                 "/usr/share/pixmaps")

eric ide

mercurial