make sure to load the right elm.json

This commit is contained in:
Brian Hicks 2020-11-22 05:54:59 -06:00
parent c036c93860
commit 67203f8bce

View File

@ -1,9 +1,12 @@
#!/usr/bin/env python
import json
import os.path as path
import re
import subprocess
with open('elm.json', 'r') as fh:
HERE = path.realpath(path.abspath(path.join(path.dirname(__file__), '..')))
with open(path.join(HERE, 'elm.json'), 'r') as fh:
modules = json.load(fh)["exposed-modules"]
widgets = {}