1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

use custom fork of sshtunnel; remove ujson

This commit is contained in:
checktheroads
2020-04-12 02:10:09 -07:00
parent 3c2b9bf61e
commit 534047de36
11 changed files with 1646 additions and 23 deletions

View File

@@ -150,7 +150,7 @@ async def write_env(variables):
RuntimeError: Raised on any errors.
"""
from aiofile import AIOFile
import ujson as json
import json
from pathlib import Path
env_file = Path("/tmp/hyperglass.env.json") # noqa: S108
@@ -390,14 +390,14 @@ async def read_package_json():
{dict} -- NPM package.json as dict
"""
from pathlib import Path
import ujson
import json
package_json_file = Path(__file__).parent / "ui" / "package.json"
try:
with package_json_file.open("r") as file:
package_json = ujson.load(file)
package_json = json.load(file)
except Exception as e:
raise RuntimeError(f"Error reading package.json: {str(e)}")