2016-12-28 09:26:01 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2019-05-23 20:55:27 +00:00
|
|
|
* Copyright (C) 1992-2019 KiCad Developers, see AUTHORS.txt for contributors.
|
2016-12-28 09:26:01 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2012-03-11 19:07:10 +00:00
|
|
|
#ifndef __PYTHON_SCRIPTING_H
|
|
|
|
#define __PYTHON_SCRIPTING_H
|
|
|
|
|
2013-03-17 19:04:42 +00:00
|
|
|
#include <wx/string.h>
|
|
|
|
|
2019-05-23 20:55:27 +00:00
|
|
|
|
2017-01-07 12:39:47 +00:00
|
|
|
/**
|
2019-05-23 20:55:27 +00:00
|
|
|
* Collect the list of python scripts which could not be loaded.
|
|
|
|
*
|
2017-01-07 12:39:47 +00:00
|
|
|
* @param aNames is a wxString which will contain the filenames (separated by '\n')
|
|
|
|
*/
|
2017-01-06 19:15:23 +00:00
|
|
|
void pcbnewGetUnloadableScriptNames( wxString& aNames );
|
2012-08-02 17:24:53 +00:00
|
|
|
|
2017-01-07 12:39:47 +00:00
|
|
|
/**
|
2019-05-23 20:55:27 +00:00
|
|
|
* Collect the list of paths where python scripts are searched.
|
|
|
|
*
|
2017-01-07 12:39:47 +00:00
|
|
|
* @param aNames is a wxString which will contain the paths (separated by '\n')
|
|
|
|
*/
|
|
|
|
void pcbnewGetScriptsSearchPaths( wxString& aNames );
|
2017-01-07 19:43:39 +00:00
|
|
|
|
|
|
|
/**
|
2019-05-23 20:55:27 +00:00
|
|
|
* Return the backtrace of errors (if any) when wizard python scripts are loaded.
|
|
|
|
*
|
2017-01-07 19:43:39 +00:00
|
|
|
* @param aNames is a wxString which will contain the trace
|
|
|
|
*/
|
|
|
|
void pcbnewGetWizardsBackTrace( wxString& aNames );
|
|
|
|
|
2016-12-28 09:26:01 +00:00
|
|
|
|
2013-03-15 16:35:24 +00:00
|
|
|
#endif // __PYTHON_SCRIPTING_H
|