[nvda-addons] Re: NVDA and distutils?

  • From: Oriol Gómez <ogomez.s92@xxxxxxxxx>
  • To: nvda-addons@xxxxxxxxxxxxx
  • Date: Wed, 7 Jan 2015 13:40:24 +0100

Oh, ok. I tried to do that and it gave an error but it could be
because NVDA does not include the python platform module, which was
giving me some confusion.

Thanks, I'll jsut remove the platform checks and force it to windows.

On 1/7/15, James Scholes <james@xxxxxxxxxxxxx> wrote:
> Oriol Gómez wrote:
>> I'm trying to code an addon which requires an external library.
>> Is there a way for me to use setup.py in an NVDA addon, or do I need
>> to make changes to the code and install it another way?
>
> Just copy the library into your add-on's code directory and then do
> something like:
>
> import sys
> sys.path.append(os.path.abspath(os.path.dirname(__file__)))
> import some_lib
>
> There is no need to use setup.py at all.
> --
> James Scholes
> http://twitter.com/JamesScholes
> ----------------------------------------------------------------
> NVDA add-ons: A list to discuss add-on code enhancements and for reporting
> bugs.
>
> Community addons are available from: http://addons.nvda-project.org
> To send a message to the list: nvda-addons@xxxxxxxxxxxxx
> To change your list settings/unsubscribe:
> //www.freelists.org/list/nvda-addons
> To contact list moderators: nvda-addons-moderators@xxxxxxxxxxxxx
>
----------------------------------------------------------------
NVDA add-ons: A list to discuss add-on code enhancements and for reporting bugs.

Community addons are available from: http://addons.nvda-project.org
To send a message to the list: nvda-addons@xxxxxxxxxxxxx
To change your list settings/unsubscribe: 
//www.freelists.org/list/nvda-addons
To contact list moderators: nvda-addons-moderators@xxxxxxxxxxxxx

Other related posts: