Commit 28161926 by Dan Robinson

added check for public directory

parent 21138a9e
...@@ -395,6 +395,8 @@ class TestFunction(unittest.TestCase): ...@@ -395,6 +395,8 @@ class TestFunction(unittest.TestCase):
os.chdir(cloud_function_dir) os.chdir(cloud_function_dir)
if not os.path.exists("config"): if not os.path.exists("config"):
os.makedirs("config") os.makedirs("config")
if not os.path.exists("public"):
os.makedirs("public")
# write the config file # write the config file
with open("config/global.json", "w") as outf: with open("config/global.json", "w") as outf:
outf.write(GLOBAL_JSON_TEXT % (settings_local.APPLICATION_ID, outf.write(GLOBAL_JSON_TEXT % (settings_local.APPLICATION_ID,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment