File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -60,16 +60,16 @@ The recommended folder structure for a Python Functions project looks like the f
60
60
61
61
```
62
62
__app__
63
- | - MyFirstFunction
63
+ | - my_first_function
64
64
| | - __init__.py
65
65
| | - function.json
66
66
| | - example.py
67
- | - MySecondFunction
67
+ | - my_second_function
68
68
| | - __init__.py
69
69
| | - function.json
70
- | - SharedCode
71
- | | - myFirstHelperFunction .py
72
- | | - mySecondHelperFunction .py
70
+ | - shared_code
71
+ | | - my_first_helper_function .py
72
+ | | - my_second_helper_function .py
73
73
| - host.json
74
74
| - requirements.txt
75
75
tests
@@ -84,10 +84,10 @@ The main project folder (\_\_app\_\_) can contain the following files:
84
84
85
85
Each function has its own code file and binding configuration file (function.json).
86
86
87
- Shared code should be kept in a separate folder in \_\_ app\_\_ . To reference modules in the SharedCode folder, you can use the following syntax:
87
+ Shared code should be kept in a separate folder in \_\_ app\_\_ . To reference modules in the shared \_ code folder, you can use the following syntax:
88
88
89
89
``` python
90
- from __app__.SharedCode import myFirstHelperFunction
90
+ from __app__.shared_code import my_first_helper_function
91
91
```
92
92
93
93
To reference modules local to a function, you can use the relative import syntax as follows:
You can’t perform that action at this time.
0 commit comments