I have tried importing Python Docx module inside my app, I have uploaded it to .../appname/lib folder and my script inside .../appname/bin couldn't find it.
Can anyone please share an example on how to upload module to app and import it in python script?
Found what was an issue, I had to move splunklib folder to .../appname/bin folder and move Python Docx module to .../appname/bin/docx and then use
import sys
sys.path.append('./docx')
sys.path.insert(0, './docx')
Found what was an issue, I had to move splunklib folder to .../appname/bin folder and move Python Docx module to .../appname/bin/docx and then use
import sys
sys.path.append('./docx')
sys.path.insert(0, './docx')