def install(): from openalea.deploy.shortcut import create_win_shortcut, set_win_reg, create_fd_shortcut from openalea.deploy import get_base_dir import sys from os.path import join as pj # Get the location of the installed egg base_dir = get_base_dir('openalea.visualea') share_dir = pj(base_dir, 'share') winexe = sys.executable winexe = winexe.replace('python.exe', 'pythonw.exe') prefix = base_dir.lower().split("lib")[0] create_win_shortcut(name = 'Visualea', target = winexe, arguments = '"'+pj(prefix, 'Scripts', 'visualea-script.pyw')+'"', startin = "", icon = pj(share_dir, 'openalea_icon.ico'), description = "Visual programming", menugroup = "OpenAlea") create_win_shortcut(name = 'Python Shell', target = winexe, arguments = '"'+pj(prefix, 'Scripts', 'aleashell-script.pyw')+'"', startin = "", icon = "", description = "Python Shell", menugroup = "OpenAlea")
def install(): from openalea.deploy.shortcut import create_win_shortcut from openalea.deploy import get_base_dir import sys from os.path import join as pj from openalea.oalab.project.symlink import create_project_shortcut create_project_shortcut() # Get the location of the installed egg base_dir = get_base_dir('openalea.oalab') share_dir = pj(base_dir, 'share') winexe = sys.executable winexe = winexe.replace('python.exe', 'pythonw.exe') prefix = base_dir.lower().split("lib")[0] create_win_shortcut(name='OALab', target=winexe, arguments='"' + pj(sys.prefix, 'Scripts', 'oalab-script.pyw') + '"', startin="", icon=pj(share_dir, 'openalea_icon.ico'), description="OpenAleaLab", menugroup="OpenAlea")
def install(): from openalea.deploy.shortcut import create_win_shortcut from openalea.deploy import get_base_dir import sys from os.path import join as pj from openalea.oalab.project.symlink import create_project_shortcut create_project_shortcut() # Get the location of the installed egg base_dir = get_base_dir("openalea.oalab") share_dir = pj(base_dir, "share") winexe = sys.executable winexe = winexe.replace("python.exe", "pythonw.exe") prefix = base_dir.lower().split("lib")[0] create_win_shortcut( name="OALab", target=winexe, arguments='"' + pj(sys.prefix, "Scripts", "oalab-script.pyw") + '"', startin="", icon=pj(share_dir, "openalea_icon.ico"), description="OpenAleaLab", menugroup="OpenAlea", )
def install(): from openalea.deploy.shortcut import create_win_shortcut, set_win_reg, create_fd_shortcut import sys from os.path import join as pj winexe = sys.executable winexe = winexe.replace('python.exe', 'pythonw.exe') create_win_shortcut(name = 'L-Py', target = winexe, arguments = '"'+pj(sys.prefix, 'Scripts', 'lpy-script.pyw')+'"', startin = "", icon = "", description = "L-Systems in Python", menugroup = "OpenAlea")
def install(): from openalea.deploy.shortcut import create_win_shortcut, set_win_reg, create_fd_shortcut import sys from os.path import join as pj winexe = sys.executable winexe = winexe.replace('python.exe', 'pythonw.exe') create_win_shortcut(name='L-Py', target=winexe, arguments='"' + pj(sys.prefix, 'Scripts', 'lpy-script.pyw') + '"', startin="", icon="", description="L-Systems in Python", menugroup="OpenAlea")
def install(): from openalea.deploy.shortcut import create_win_shortcut, set_win_reg, create_fd_shortcut from openalea.deploy import get_base_dir import sys, os from os.path import join as pj # Get the location of the installed egg base_dir = get_base_dir('plantgl') bin_dir = pj(base_dir, "bin") print bin_dir create_win_shortcut(name = 'PlantGL Viewer', target = pj(bin_dir, "pglviewer.exe",), arguments = "", startin = "", icon = pj(bin_dir, "pglviewer.exe",), description = "PlantGL Viewer", menugroup = "OpenAlea") # Windows registery (list of (key, subkey, name, value)) winreg = [ ('HKCR', '.smb', '', 'PGLFile') , ('HKCR', '.lig', '', 'PGLFile') , ('HKCR', '.geom', '', 'PGLFile') , ('HKCR', '.bgeom', '', 'PGLFile') , ('HKCR', 'PGLFile', '', 'PlantGL File') , ('HKCR', 'PGLFile\\DefaultIcon', '', pj(bin_dir,'pglviewer.exe')+",1") , ('HKCR', 'PGLFile\\shell', '', "open") , ('HKCR', 'PGLFile\\shell\\open', '', "Open") , ('HKCR', 'PGLFile\\shell\\open\\command', '', '"'+pj(bin_dir,'pglviewer.exe')+'" "%1"') , ('HKCR', 'PGLFile\\shell\\add', '', "Add") , ('HKCR', 'PGLFile\\shell\\add\\command', '', '"'+pj(bin_dir,'pglviewer.exe')+'" -a "%1"') , # ('HKCR', 'PGLFile\\shell\\edit', '', "Edit") , # ('HKCR', 'PGLFile\\shell\\edit\\command', '', '"'+pj(config.bin_dir,'pgleditor.exe')+'" "%1"') , # ('HKCR', 'PGLFile\\shell\\geom2pov', '', "Translate To Povray") , # ('HKCR', 'PGLFile\\shell\\geom2pov\\command', '', '"'+pj(config.bin_dir,'pgl2pov.exe')+'" "%1"') , ] for t in winreg: set_win_reg(*t)
def install(): """todo""" from openalea.deploy.shortcut import create_win_shortcut, set_win_reg, create_fd_shortcut from openalea.deploy import get_base_dir import sys from os.path import join as pj # Get the location of the installed egg base_dir = get_base_dir('openalea.deploygui') share_dir = pj(base_dir, 'share') winexe = sys.executable winexe = winexe.replace('python.exe', 'pythonw.exe') create_win_shortcut(name = 'OpenAlea Installer', target = winexe, arguments = '"'+pj(sys.prefix, 'Scripts', 'alea_install_gui-script.pyw')+'"', startin = "", icon = pj(share_dir, 'install_icon.ico'), description = "OpenAlea Installation", menugroup = "OpenAlea")
def install(): from openalea.deploy.shortcut import create_win_shortcut, set_win_reg, create_fd_shortcut import sys from os.path import join as pj winexe = sys.executable winexe = winexe.replace('python.exe', 'pythonw.exe') create_win_shortcut(name = 'Flower Demo', target = winexe, arguments = '"'+pj(sys.prefix, 'Scripts', 'flowerdemo-script.pyw')+'"', startin = "", icon = "", description = "Flower Demo", menugroup = "OpenAlea") create_win_shortcut(name = 'Simplified Flower Demo', target = winexe, arguments = '"'+pj(sys.prefix, 'Scripts', 'flowerdemo3-script.pyw')+'"', startin = "", icon = "", description = "Simplified Flower Demo", menugroup = "OpenAlea")