install.py

branch
5_0_x
changeset 387
7cb2a400b7a3
parent 385
dce841567a6c
child 390
daa7c6ae6248
equal deleted inserted replaced
385:dce841567a6c 387:7cb2a400b7a3
409 except EnvironmentError: 409 except EnvironmentError:
410 print("Could not install '%s'." % apiName) 410 print("Could not install '%s'." % apiName)
411 411
412 # create menu entry for Linux systems 412 # create menu entry for Linux systems
413 if sys.platform.startswith("linux"): 413 if sys.platform.startswith("linux"):
414 shutil.copy(os.path.join("eric", "icons", "default", "eric.png"), "/usr/share/pixmaps") 414 if distDir:
415 shutil.copy(os.path.join("eric", "eric5.desktop"), "/usr/share/applications") 415 shutil.copy(os.path.join("eric", "icons", "default", "eric.png"),
416 os.path.normpath(os.path.join(distDir, "/usr/share/pixmaps")))
417 shutil.copy(os.path.join("eric", "eric5.desktop"),
418 os.path.normpath(os.path.join(distDir, "/usr/share/applications")))
419 else:
420 shutil.copy(os.path.join("eric", "icons", "default", "eric.png"),
421 "/usr/share/pixmaps")
422 shutil.copy(os.path.join("eric", "eric5.desktop"),
423 "/usr/share/applications")
416 424
417 425
418 def createInstallConfig(): 426 def createInstallConfig():
419 """ 427 """
420 Create the installation config dictionary. 428 Create the installation config dictionary.

eric ide

mercurial