In a mule project, I have a Python script component that needs to access a cert.pem file.
In AnyPointStudio I've placed it in the ./src/main/resources/ folder. When I create a Mule Deployable Archive, it ends up in the ./target/classes/ folder.
What path should I specify to access this file.
I've tried
path = 'cert.pem'
## And ##
cwd = os.getcwd()
path = os.path.join(cwd, 'classes','cert.pem')
path = os.path.join(cwd, 'target','classes','cert.pem')
path = os.path.join(cwd, 'src','main', 'resources','cert.pem')
None of which work.
Any advice?
Side Question:
In CloudHub simple print()
statements in the .py script don't log, I tried log("message")
but that raised an exception. Any ideas?