When working with Azure App Functions inside of Visual Studio Code I would like to add python Classes to import into init.py by including their files?
Is there a recommended way to accomplish this?
When working with Azure App Functions inside of Visual Studio Code I would like to add python Classes to import into init.py by including their files?
Is there a recommended way to accomplish this?
I will show how to import the classes under test file outside HttpTrigger1 function, classes under test file inside HttpTrigger1 function.
Here is my file structure, :
Import the class named Display in init.py under test file inside HttpTrigger1 function:
from test import Display
Import the class named Display1 in yes.py under test file inside HttpTrigger1 function:
from test.yes import Display1
Import the class named Display in init.py under test file outside HttpTrigger1 function:
from ..test import Display
Import the class named Display1 in yes.py under test file outside HttpTrigger1 function:
from ..test.yes import Display1