FreeCAD
40 строк · 2.4 Кб
1# ***************************************************************************
2# * Copyright (c) 2001,2002 Juergen Riegel <juergen.riegel@web.de> *
3# * Copyright (c) 2013 Yorik van Havre <yorik@uncreated.net> *
4# * Copyright (c) 2013 Eivind Kvedalen <eivind@kvedalen.name> *
5# * *
6# * This file is part of the FreeCAD CAx development system. *
7# * *
8# * This program is free software; you can redistribute it and/or modify *
9# * it under the terms of the GNU Lesser General Public License (LGPL) *
10# * as published by the Free Software Foundation; either version 2 of *
11# * the License, or (at your option) any later version. *
12# * for detail see the LICENCE text file. *
13# * *
14# * FreeCAD is distributed in the hope that it will be useful, *
15# * but WITHOUT ANY WARRANTY; without even the implied warranty of *
16# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
17# * GNU Lesser General Public License for more details. *
18# * *
19# * You should have received a copy of the GNU Library General Public *
20# * License along with FreeCAD; if not, write to the Free Software *
21# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
22# * USA *
23# * *
24# ***************************************************************************/
25
26# FreeCAD init script of the Spreadsheet module
27
28
29# Get the Parameter Group of this module
30ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Spreadsheet")
31
32# Set the needed information
33ParGrp.SetString("HelpIndex", "Spreadsheet/Help/index.html")
34ParGrp.SetString("WorkBenchName", "Spreadsheet")
35ParGrp.SetString("WorkBenchModule", "SpreadsheetWorkbench.py")
36
37# add Import/Export types
38App.addImportType("Excel spreadsheet (*.xlsx *.XLSX)", "importXLSX")
39
40App.__unit_test__ += ["TestSpreadsheet"]
41