Skip to content

Commit 4730b84

Browse files
authored
Merge pull request #87783 from mike-urnun-msft/patch-87
resolves #38215
2 parents 33af4c0 + bf0849e commit 4730b84

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

articles/azure-functions/functions-reference-python.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ The folder structure for a Python Functions project looks like the following exa
8989
| - MyFirstFunction
9090
| | - __init__.py
9191
| | - function.json
92+
| | - example.py
9293
| - MySecondFunction
9394
| | - __init__.py
9495
| | - function.json
@@ -107,6 +108,12 @@ Shared code should be kept in a separate folder. To reference modules in the Sha
107108
from __app__.SharedCode import myFirstHelperFunction
108109
```
109110

111+
To reference modules local to a function, you can use the relative import syntax as follows:
112+
113+
```
114+
from . import example
115+
```
116+
110117
When deploying a Function project to your function app in Azure, the entire content of the *FunctionApp* folder should be included in the package, but not the folder itself.
111118

112119
## Triggers and Inputs

0 commit comments

Comments
 (0)