mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-07 00:48:56 +00:00
19 lines
473 B
Python
19 lines
473 B
Python
import json
|
|
import os
|
|
import sys
|
|
|
|
here = os.path.split(__file__)[0]
|
|
sys.path.insert(0, os.path.join(here, os.pardir, "scripts"))
|
|
import _env
|
|
root = _env.repo_root
|
|
|
|
import manifest
|
|
|
|
def main(request, response):
|
|
path = os.path.join(root, "MANIFEST.json")
|
|
manifest_file = manifest.load(path)
|
|
manifest.update(root, "/", manifest_file)
|
|
manifest.write(manifest_file, path)
|
|
|
|
return [("Content-Type", "application/json")], json.dumps({"url": "/MANIFEST.json"})
|