diff --git a/lark/load_grammar.py b/lark/load_grammar.py index ce0547769..0bbc523c5 100644 --- a/lark/load_grammar.py +++ b/lark/load_grammar.py @@ -25,7 +25,6 @@ from .visitors import Transformer, Visitor, v_args, Transformer_InPlace, Transformer_NonRecursive inline_args = v_args(inline=True) -__path__ = os.path.dirname(__file__) IMPORT_PATHS = ['grammars'] EXT = '.lark' diff --git a/tests/test_parser.py b/tests/test_parser.py index a7496890c..ccddf6363 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -39,10 +39,6 @@ __all__ = ['TestParsers'] -__path__ = os.path.dirname(__file__) -def _read(n, *args): - with open(os.path.join(__path__, n), *args) as f: - return f.read() class TestParsers(unittest.TestCase): def test_big_list(self):