install.py

branch
5_0_x
changeset 462
ac91c502254e
parent 391
68e4164b709d
child 567
5dcea6a6c0d0
equal deleted inserted replaced
451:bde55078d91e 462:ac91c502254e
419 print("Could not install '%s'." % apiName) 419 print("Could not install '%s'." % apiName)
420 420
421 # create menu entry for Linux systems 421 # create menu entry for Linux systems
422 if sys.platform.startswith("linux"): 422 if sys.platform.startswith("linux"):
423 if distDir: 423 if distDir:
424 shutil.copy(os.path.join("eric", "icons", "default", "eric.png"), 424 dst = os.path.normpath(os.path.join(distDir, "usr/share/pixmaps"))
425 os.path.normpath(os.path.join(distDir, "/usr/share/pixmaps"))) 425 if not os.path.exists(dst):
426 shutil.copy(os.path.join("eric", "eric5.desktop"), 426 os.makedirs(dst)
427 os.path.normpath(os.path.join(distDir, "/usr/share/applications"))) 427 shutil.copy(os.path.join("eric", "icons", "default", "eric.png"), dst)
428 dst = os.path.normpath(os.path.join(distDir, "usr/share/applications"))
429 if not os.path.exists(dst):
430 os.makedirs(dst)
431 shutil.copy(os.path.join("eric", "eric5.desktop"), dst)
428 else: 432 else:
429 shutil.copy(os.path.join("eric", "icons", "default", "eric.png"), 433 shutil.copy(os.path.join("eric", "icons", "default", "eric.png"),
430 "/usr/share/pixmaps") 434 "/usr/share/pixmaps")
431 shutil.copy(os.path.join("eric", "eric5.desktop"), 435 shutil.copy(os.path.join("eric", "eric5.desktop"),
432 "/usr/share/applications") 436 "/usr/share/applications")

eric ide

mercurial