From c88edfd09370c473f98ef3507d67dfb0fe985849 Mon Sep 17 00:00:00 2001 From: boukeversteegh Date: Fri, 12 Jun 2020 13:54:14 +0200 Subject: [PATCH] Support running plugin without installing betterproto --- betterproto/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/betterproto/plugin.py b/betterproto/plugin.py index 3d44a2b..33890af 100755 --- a/betterproto/plugin.py +++ b/betterproto/plugin.py @@ -1,5 +1,4 @@ #!/usr/bin/env python - import itertools import os.path import pathlib @@ -8,6 +7,7 @@ import sys import textwrap from typing import List +sys.path.append(str(pathlib.Path(__file__).parent.parent)) # add betterproto to path import betterproto from betterproto.compile.importing import get_ref_type from betterproto.compile.naming import (