Skip to content

why not just use function like loadJSONFile #60

@potehinre

Description

@potehinre
def load_json_file(path):
     	path = os.path.join(os.getcwd(),path)
	with open(path, 'r') as f:
		data = f.read()
	return json.loads(data)

https://github.com/GenesisKernel/genesis-tests/blob/6f57ca7ef9dc460cf469ac3643267cc076480d3f/config.py#L5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions