Hi, what kind of ad on are you intending to create? Sent from my iPhone > On Jan 7, 2015, at 6:40 AM, Oriol Gómez <ogomez.s92@xxxxxxxxx> wrote: > > 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 ---------------------------------------------------------------- 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