I have an API Wrapper library I'm trying to use in my Web2PY project by including it in the modules directory.
I'm copying a directory called myWrapper into the modules directory.
The result is applications/myApp/modules/myWrapper
Within the myWrapper directory are all the files that make up the myWrapper library
The problem is that I need to load a class from a file within the MyWrapper Library.
In any vanilla python script I would simply do the following
From myWrapper.fileA import classA
I'm not sure how/if I can do the same thing inside Web2PY using import_local().
Further, I did attempt to modify the python sys.path to include the myWrapper directory , which allowed me to use:
From myWrapper.fileA import classA
BUT .... Within classA there are additional imports (from other files within the myWrapper directory) that fail to import.
I get the "No module named .... " error.
Is there a proper way to get all this working?
Thanks in advance
Scott