From 67203f8bce4263b9e1ef1940e71108f00481588d Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Sun, 22 Nov 2020 05:54:59 -0600 Subject: [PATCH] make sure to load the right elm.json --- script/forbid-deprecated-imports.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/forbid-deprecated-imports.py b/script/forbid-deprecated-imports.py index 30139128..d2be4cbb 100755 --- a/script/forbid-deprecated-imports.py +++ b/script/forbid-deprecated-imports.py @@ -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 = {}