2016-08-16, 23:13
Hi,
I'm unable to figure how to use 3rd party python libraries , for example dryscrape - https://github.com/niklasb/dryscrape/ ,
They come with a setup.py file and others , I can copy that file and include it in the root folder of my addon, then use the import statement but that doesnt work , How can i use 3rd party libraries like this?
On the wiki it says "Additional modules may be installed by simply adding the module to the root folder of your add-on.
A common way to organized third-party modules that are not part of add-on source code itself, is to add a lib directory and place an __init__.py file and other third-party modules inside it. These modules may then normally be imported using from lib import somemodule."
But lets say i want to use dryscrape , I make a lib folder and then another folder named dryscrape? also , There is an __init__.py file .
I really cant figure it out.
How can this be done ?
Thanks.
I'm unable to figure how to use 3rd party python libraries , for example dryscrape - https://github.com/niklasb/dryscrape/ ,
They come with a setup.py file and others , I can copy that file and include it in the root folder of my addon, then use the import statement but that doesnt work , How can i use 3rd party libraries like this?
On the wiki it says "Additional modules may be installed by simply adding the module to the root folder of your add-on.
A common way to organized third-party modules that are not part of add-on source code itself, is to add a lib directory and place an __init__.py file and other third-party modules inside it. These modules may then normally be imported using from lib import somemodule."
But lets say i want to use dryscrape , I make a lib folder and then another folder named dryscrape? also , There is an __init__.py file .
I really cant figure it out.
How can this be done ?
Thanks.