Support running plugin without installing betterproto
This commit is contained in:
parent
83e13aa606
commit
c88edfd093
@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import itertools
|
import itertools
|
||||||
import os.path
|
import os.path
|
||||||
import pathlib
|
import pathlib
|
||||||
@ -8,6 +7,7 @@ import sys
|
|||||||
import textwrap
|
import textwrap
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
|
sys.path.append(str(pathlib.Path(__file__).parent.parent)) # add betterproto to path
|
||||||
import betterproto
|
import betterproto
|
||||||
from betterproto.compile.importing import get_ref_type
|
from betterproto.compile.importing import get_ref_type
|
||||||
from betterproto.compile.naming import (
|
from betterproto.compile.naming import (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user