Fixed an issue in the install.py script where some paths didn't honour the distDir settings. 5_0_x

Sat, 10 Jul 2010 12:10:22 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 10 Jul 2010 12:10:22 +0200
branch
5_0_x
changeset 387
7cb2a400b7a3
parent 385
dce841567a6c
child 389
1a8c8424d2b3

Fixed an issue in the install.py script where some paths didn't honour the distDir settings.

install.py file | annotate | diff | comparison | revisions
diff -r dce841567a6c -r 7cb2a400b7a3 install.py
--- a/install.py	Sun Jul 04 20:48:26 2010 +0200
+++ b/install.py	Sat Jul 10 12:10:22 2010 +0200
@@ -411,8 +411,16 @@
     
     # create menu entry for Linux systems
     if sys.platform.startswith("linux"):
-        shutil.copy(os.path.join("eric", "icons", "default", "eric.png"), "/usr/share/pixmaps")
-        shutil.copy(os.path.join("eric", "eric5.desktop"), "/usr/share/applications")
+        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")))
+        else:
+            shutil.copy(os.path.join("eric", "icons", "default", "eric.png"), 
+                "/usr/share/pixmaps")
+            shutil.copy(os.path.join("eric", "eric5.desktop"), 
+                "/usr/share/applications")
 
 
 def createInstallConfig():

eric ide

mercurial