Hey guys,
With my current work on python plugins for pcbnew, I noticed that you
quickly want to go ahead and divide up your plugin into multiple
subfiles (e.g. test_plugin.py, test_plugin_main_dialog.py, etc..)
Right now, KiCad loads the python files from the hardcoded folders (one
of them being ~
Small followup. The 2nd solution currently does not work with KiCad,
because the module path (sys.path) is not setup correctly it seems.
As said here:
https://docs.python.org/2/library/sys.html
"As initialized upon program startup, the first item of this list,
path[0], is the directory containing t
Hey guys,
There does not seem to be a lot of feedback. I guess I am rather early
to the pcbnew Python Plugin Party ;-)
I have dug deeper into the code and found out, that the plugins are
actually pulled into python using 'import'. I was under the impression
that a python interpreter was instantiat
Simon,
There is some documentation on the Python scripting in the users
documentation[1]. There is also a developers Pcbnew Scripting
section[2] as well but is currently empty. I'm guessing you are talking
about documentation for developers. There are two ways to approach
this. Fill in the Dox
Speaking of Python scripts path - I wonder whether we should move it to
$XDG_DATA_HOME/kicad/plugins, as we already try to conform to XDG base
directory specification for configuration files.
I suppose we would have to keep ~/.kicad_plugins path during the
transition process or automatically move
That is something I wondered when first looking at this stuff :-) I
think it is a good idea. In fact I was about to ask something like this
too, but I did not have the guts to do so. Being new to KiCAD and this
mailing list and all.. ;-)
Btw, isn't there also a ~/.kicad folder where program se
Hi Wayne,
Yes, that is what I meant. I will have a look at the two options next
weekend.
Best Regards!
Simon
Am 2017-06-12 00:39, schrieb Wayne Stambaugh:
Simon,
There is some documentation on the Python scripting in the users
documentation[1]. There is also a developers Pcbnew Scripting
se
I'm OK with using the XDG directory specification but dealing with the
legacy directory may be problematic. I wonder in practice how many
users it will actually effect? I'm guessing the number of users who
have custom python scripts in ~/.kicad_plugins is fairly low.
On 6/12/2017 5:54 AM, Maciej
8 matches
Mail list logo