tis-libreoffice-fileassoc 1.0.0-1

  • package : tis-libreoffice-fileassoc
  • version : 1.0.0-1
  • description : Association de fichiers avec LibreOffice
  • maintainer : Alexandre Gauvrit
  • date : 2017-10-31 16:40:33
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20171031-164033
  • min_os_version :
  • min_wapt_version :

setup.py

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    print('installing tis-libreoffice-fileassoc')
    word_list_assoc = ('.doc','.docx','.dot','.dotx','.odt','.rtf')
    excel_list_assoc = ('.ods','.xla','.xls','.xlm','.xlsx')
    powerpoint_list_assoc = ('.odp','.pot','.potx','.pps','.ppsx','.ppt','.pptx')
    for soft in installed_softwares('LibreOffice'):
        path_libreoffice = install_location(soft['key'])

    swriter = makepath(path_libreoffice,'program','swriter.exe')
    scalc = makepath(path_libreoffice,'program','scalc.exe')
    simpress = makepath(path_libreoffice,'program','simpress.exe')

    for ext in word_list_assoc:
        register_ext('LibreOffice',ext,'"{kwarg}" -o "%1"'.format(kwarg=swriter))

    for ext in powerpoint_list_assoc:
        register_ext('LibreOffice',ext,'"{kwarg}" -o "%1"'.format(kwarg=simpress))

    for ext in excel_list_assoc:
        register_ext('LibreOffice',ext,'"{kwarg}" -o "%1"'.format(kwarg=scalc))
    

manifest

Couldn't retrieve manifest.