mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* More doc updates, explanation of serverless. * Moved howto directory to examples and some minor doc updates. * Added apps and routes docs. * Fixes for Carlos' comments. * Added bit about importing lambda functions.
12 lines
222 B
Python
12 lines
222 B
Python
import sys
|
|
sys.path.append("packages")
|
|
import os
|
|
import json
|
|
|
|
name = "World"
|
|
if not os.isatty(sys.stdin.fileno()):
|
|
obj = json.loads(sys.stdin.read())
|
|
if obj["name"] != "":
|
|
name = obj["name"]
|
|
|
|
print "Hello", name, "!!!" |