mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-05 16:09:07 -04:00
gir: batch-add user typelib search paths
This commit is contained in:
parent
07e824d8e7
commit
f2d4643bf5
2 changed files with 6 additions and 7 deletions
|
@ -26,7 +26,7 @@ import typing as T
|
|||
|
||||
from . import formatter, interactive_port, parser, tokenizer
|
||||
from .errors import CompileError, CompilerBugError, PrintableError, report_bug
|
||||
from .gir import add_typelib_search_path
|
||||
from .gir import add_user_typelib_paths
|
||||
from .lsp import LanguageServer
|
||||
from .outputs import XmlOutput
|
||||
from .utils import Colors
|
||||
|
@ -135,8 +135,7 @@ class BlueprintApp:
|
|||
|
||||
def cmd_compile(self, opts):
|
||||
if opts.typelib_path != None:
|
||||
for typelib_path in opts.typelib_path:
|
||||
add_typelib_search_path(typelib_path)
|
||||
add_user_typelib_paths(opts.typelib_path)
|
||||
|
||||
data = opts.input.read()
|
||||
try:
|
||||
|
@ -156,8 +155,7 @@ class BlueprintApp:
|
|||
|
||||
def cmd_batch_compile(self, opts):
|
||||
if opts.typelib_path != None:
|
||||
for typelib_path in opts.typelib_path:
|
||||
add_typelib_search_path(typelib_path)
|
||||
add_user_typelib_paths(opts.typelib_path)
|
||||
|
||||
for file in opts.inputs:
|
||||
data = file.read()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue