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 = {}