← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Fixup documentation path for macOS scripting plugins

 

How's this?

Adam

On Mon, Nov 26, 2018 at 9:52 PM Andrew Lutsenko <anlutsenko@xxxxxxxxx>
wrote:

> That sounds good to me.
> There is also that MacOS security feature that turns /Applications/...
> paths into some obfuscated virtual paths (as seen by the app, even though
> those dirs don't exist) and that may spook an uninformed average user. So I
> would also add that it's best to stick to the paths that are within user
> directory ($HOME on linux/mac, %APPDATA% on Win).
>
> On Mon, Nov 26, 2018 at 7:24 PM Adam Wolf <adamwolf@xxxxxxxxxxxxxxxxxxxx>
> wrote:
>
>> Hmm.  Interesting.  I don't know what package ever had
>> /Applications/kicad/Kicad/Contents/SharedSupport/scripting/plugins missing
>> a .app in /Applications/kicad.app/, but the Mac package has had a lot of
>> history.
>>
>> What's the next step here... add some words saying "Modern macOS installs
>> likely have them at XXXXX, but if it doesn't seem like these are right, try
>> running
>>
>> import pcbnewprint pcbnew.PLUGIN_DIRECTORIES_SEARCH
>>
>> in the scripting console"?
>>
>> Adam
>>
>> On Mon, Nov 26, 2018 at 9:03 PM Andrew Lutsenko <anlutsenko@xxxxxxxxx>
>> wrote:
>>
>>> Hi Adam,
>>> Please note that current paths are actually correct for previous
>>> versions of MacOS. I'm not sure exactly when the change happened but the
>>> paths you are suggesting are valid for latest versions of MacOS and kicad.
>>> Maybe it's worth to add a note stating that these paths are correct for
>>> latest versions of the software.
>>> Also there is a simple way to get all valid paths from kicad itself, I
>>> have it described in the wiki for my plugin here
>>> https://github.com/openscopeproject/InteractiveHtmlBom/wiki/Installation
>>>
>>> > Above list may be out of date or inaccurate for your OS
>>> version/distribution. You can get full list of directories that pcbnew is
>>> scanning for plugins by running this in scripting console:
>>>
>>> import pcbnewprint pcbnew.PLUGIN_DIRECTORIES_SEARCH
>>>
>>>
>>> Having that in the docs would be useful too.
>>>
>>> Regards,
>>> Andrew
>>>
>>> On Mon, Nov 26, 2018 at 6:35 PM Adam Wolf <adamwolf@xxxxxxxxxxxxxxxxxxxx>
>>> wrote:
>>>
>>>> Fixes https://bugs.launchpad.net/kicad/+bug/1789960.
>>>>
>>>> Adam
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~kicad-developers
>>>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>

Attachment: 0001-Fixup-documentation-for-macOS-Python-script-plugins..patch
Description: Binary data


Follow ups

References