Skip to content Skip to sidebar Skip to footer

Not Able To Publish Azure Python Function App With External Dependencies (not In Index)

I have an simple python module AdditionalLibrary, I do not want to publish it nowhere public. I have also an azure python serverless function app ExamplePythonServerlessFunction I

Solution 1:

I've been doing this:

import os
import sys
sys.path.append(os.path.abspath(os.path.join(os.path.dirname( __file__ ), '../../../az/Lib/site-packages')))
from azure.storage.cloudstorageaccount import CloudStorageAccount,AccountPermissions,Services,ResourceTypes
from azure.storage.blob import BlockBlobService

so you can just create a directory in your function and add it to path and import modules from that path.

Post a Comment for "Not Able To Publish Azure Python Function App With External Dependencies (not In Index)"