2016-12-28 10:26:01 +01:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2025-01-01 13:30:11 -08:00
|
|
|
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
|
2016-12-28 10:26:01 +01: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 20:07:10 +01:00
|
|
|
#ifndef __PYTHON_SCRIPTING_H
|
|
|
|
#define __PYTHON_SCRIPTING_H
|
|
|
|
|
2013-03-17 20:04:42 +01:00
|
|
|
#include <wx/string.h>
|
|
|
|
|
2019-05-23 16:55:27 -04:00
|
|
|
|
2017-01-07 13:39:47 +01:00
|
|
|
/**
|
2019-05-23 16:55:27 -04:00
|
|
|
* Collect the list of python scripts which could not be loaded.
|
|
|
|
*
|
2017-01-07 13:39:47 +01:00
|
|
|
* @param aNames is a wxString which will contain the filenames (separated by '\n')
|
|
|
|
*/
|
2017-01-06 20:15:23 +01:00
|
|
|
void pcbnewGetUnloadableScriptNames( wxString& aNames );
|
2012-08-02 19:24:53 +02:00
|
|
|
|
2017-01-07 13:39:47 +01:00
|
|
|
/**
|
2019-05-23 16:55:27 -04:00
|
|
|
* Collect the list of paths where python scripts are searched.
|
|
|
|
*
|
2017-01-07 13:39:47 +01:00
|
|
|
* @param aNames is a wxString which will contain the paths (separated by '\n')
|
|
|
|
*/
|
|
|
|
void pcbnewGetScriptsSearchPaths( wxString& aNames );
|
2017-01-07 20:43:39 +01:00
|
|
|
|
|
|
|
/**
|
2019-05-23 16:55:27 -04:00
|
|
|
* Return the backtrace of errors (if any) when wizard python scripts are loaded.
|
|
|
|
*
|
2017-01-07 20:43:39 +01:00
|
|
|
* @param aNames is a wxString which will contain the trace
|
|
|
|
*/
|
|
|
|
void pcbnewGetWizardsBackTrace( wxString& aNames );
|
|
|
|
|
2016-12-28 10:26:01 +01:00
|
|
|
|
2013-03-15 17:35:24 +01:00
|
|
|
#endif // __PYTHON_SCRIPTING_H
|