We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81701c5 commit 23d8571Copy full SHA for 23d8571
codelabs/functions/python_powered/main.py
@@ -12,6 +12,8 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
+import os
16
+
17
import flask
18
19
@@ -55,4 +57,4 @@ def python_powered(request):
55
57
Returns:
56
58
The response file, a JPG image that says "Python Powered"
59
"""
- return flask.send_file("python_powered.jpg", mimetype="image/jpg")
60
+ return flask.send_from_directory(os.getcwd(), "python_powered.jpg", mimetype="image/jpg")
0 commit comments