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

2018-11-28 Thread Wayne Stambaugh
Adam,

I merged your patch.

Thanks,

Wayne

On 11/27/2018 8:59 AM, Adam Wolf wrote:
> How's this?
> 
> Adam
> 
> On Mon, Nov 26, 2018 at 9:52 PM Andrew Lutsenko  > 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
>  > 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 X, but if it doesn't seem like
> these are right, try running
> 
> import pcbnew
> print pcbnew.PLUGIN_DIRECTORIES_SEARCH
> 
> in the scripting console"?
> 
> Adam
> 
> On Mon, Nov 26, 2018 at 9:03 PM Andrew Lutsenko
> mailto:anlutse...@gmail.com>> 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 pcbnew
> print 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
>  > wrote:
> 
> Fixes https://bugs.launchpad.net/kicad/+bug/1789960.
> 
> Adam
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@lists.launchpad.net
> 
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


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

2018-11-28 Thread Adam Wolf
Ignore the first, please!

Thanks Wayne.

Adam

On Wed, Nov 28, 2018 at 8:28 AM Wayne Stambaugh 
wrote:

> Adam,
>
> Is the second patch replace the first one or do I need to merge both
> patches?
>
> Cheers,
>
> Wayne
>
> On 11/27/2018 8:59 AM, Adam Wolf wrote:
> > How's this?
> >
> > Adam
> >
> > On Mon, Nov 26, 2018 at 9:52 PM Andrew Lutsenko  > > 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
> >  > > 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 X, but if it doesn't seem like
> > these are right, try running
> >
> > import pcbnew
> > print pcbnew.PLUGIN_DIRECTORIES_SEARCH
> >
> > in the scripting console"?
> >
> > Adam
> >
> > On Mon, Nov 26, 2018 at 9:03 PM Andrew Lutsenko
> > mailto:anlutse...@gmail.com>> 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 pcbnew
> > print 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
> >  > > wrote:
> >
> > Fixes https://bugs.launchpad.net/kicad/+bug/1789960.
> >
> > Adam
> > ___
> > Mailing list: https://launchpad.net/~kicad-developers
> > Post to : kicad-developers@lists.launchpad.net
> > 
> > Unsubscribe : https://launchpad.net/~kicad-developers
> > More help   : https://help.launchpad.net/ListHelp
> >
> >
> > ___
> > Mailing list: https://launchpad.net/~kicad-developers
> > Post to : kicad-developers@lists.launchpad.net
> > Unsubscribe : https://launchpad.net/~kicad-developers
> > More help   : https://help.launchpad.net/ListHelp
> >
>
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


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

2018-11-28 Thread Wayne Stambaugh
Adam,

Is the second patch replace the first one or do I need to merge both
patches?

Cheers,

Wayne

On 11/27/2018 8:59 AM, Adam Wolf wrote:
> How's this?
> 
> Adam
> 
> On Mon, Nov 26, 2018 at 9:52 PM Andrew Lutsenko  > 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
>  > 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 X, but if it doesn't seem like
> these are right, try running
> 
> import pcbnew
> print pcbnew.PLUGIN_DIRECTORIES_SEARCH
> 
> in the scripting console"?
> 
> Adam
> 
> On Mon, Nov 26, 2018 at 9:03 PM Andrew Lutsenko
> mailto:anlutse...@gmail.com>> 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 pcbnew
> print 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
>  > wrote:
> 
> Fixes https://bugs.launchpad.net/kicad/+bug/1789960.
> 
> Adam
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@lists.launchpad.net
> 
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


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

2018-11-28 Thread Andrew Lutsenko
Looks good to me

Thanks,
Andrew

On Tue, Nov 27, 2018 at 5:59 AM Adam Wolf 
wrote:

> How's this?
>
> Adam
>
> On Mon, Nov 26, 2018 at 9:52 PM Andrew Lutsenko 
> 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 
>> 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 X, 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 
>>> 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 <
 adamw...@feelslikeburning.com> wrote:

> Fixes https://bugs.launchpad.net/kicad/+bug/1789960.
>
> Adam
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


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

2018-11-27 Thread Adam Wolf
How's this?

Adam

On Mon, Nov 26, 2018 at 9:52 PM Andrew Lutsenko 
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 
> 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 X, 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 
>> 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 
>>> wrote:
>>>
 Fixes https://bugs.launchpad.net/kicad/+bug/1789960.

 Adam
 ___
 Mailing list: https://launchpad.net/~kicad-developers
 Post to : kicad-developers@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~kicad-developers
 More help   : https://help.launchpad.net/ListHelp

>>>


0001-Fixup-documentation-for-macOS-Python-script-plugins..patch
Description: Binary data
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


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

2018-11-26 Thread Andrew Lutsenko
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 
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 X, 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 
> 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 
>> wrote:
>>
>>> Fixes https://bugs.launchpad.net/kicad/+bug/1789960.
>>>
>>> Adam
>>> ___
>>> Mailing list: https://launchpad.net/~kicad-developers
>>> Post to : kicad-developers@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


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

2018-11-26 Thread Adam Wolf
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 X, 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 
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 
> wrote:
>
>> Fixes https://bugs.launchpad.net/kicad/+bug/1789960.
>>
>> Adam
>> ___
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>>
>
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


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

2018-11-26 Thread Andrew Lutsenko
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 
wrote:

> Fixes https://bugs.launchpad.net/kicad/+bug/1789960.
>
> Adam
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp