install.py

changeset 473
b314592e3d79
parent 441
dec3dd52411a
child 564
b3d966393ba9
equal deleted inserted replaced
454:d28d558f7484 473:b314592e3d79
426 print("Could not install '{0}'.".format(apiName)) 426 print("Could not install '{0}'.".format(apiName))
427 427
428 # create menu entry for Linux systems 428 # create menu entry for Linux systems
429 if sys.platform.startswith("linux"): 429 if sys.platform.startswith("linux"):
430 if distDir: 430 if distDir:
431 shutil.copy(os.path.join("eric", "icons", "default", "eric.png"), 431 dst = os.path.normpath(os.path.join(distDir, "usr/share/pixmaps"))
432 os.path.normpath(os.path.join(distDir, "/usr/share/pixmaps"))) 432 if not os.path.exists(dst):
433 shutil.copy(os.path.join("eric", "eric5.desktop"), 433 os.makedirs(dst)
434 os.path.normpath(os.path.join(distDir, "/usr/share/applications"))) 434 shutil.copy(os.path.join("eric", "icons", "default", "eric.png"), dst)
435 dst = os.path.normpath(os.path.join(distDir, "usr/share/applications"))
436 if not os.path.exists(dst):
437 os.makedirs(dst)
438 shutil.copy(os.path.join("eric", "eric5.desktop"), dst)
435 else: 439 else:
436 shutil.copy(os.path.join("eric", "icons", "default", "eric.png"), 440 shutil.copy(os.path.join("eric", "icons", "default", "eric.png"),
437 "/usr/share/pixmaps") 441 "/usr/share/pixmaps")
438 shutil.copy(os.path.join("eric", "eric5.desktop"), 442 shutil.copy(os.path.join("eric", "eric5.desktop"),
439 "/usr/share/applications") 443 "/usr/share/applications")

eric ide

mercurial