Skip to content

Commit 313c2a3

Browse files
authored
Merge pull request #159 from opengisch/plugins
plugins directory as --plugins
2 parents 1b9f158 + 8963c7d commit 313c2a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modelbaker/iliwrapper/ili2dbconfig.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ def __init__(self, other: Ili2DbCommandConfiguration = None):
470470
self.skip_geometry_errors = False
471471
self.valid_config = ""
472472
self.xtffile = ""
473+
self.plugins_dir = ""
473474

474475
def to_ili2db_args(self, extra_args=[], with_action=True):
475476
args = list()
@@ -516,6 +517,9 @@ def to_ili2db_args(self, extra_args=[], with_action=True):
516517
if self.db_ili_version == 3:
517518
self.append_args(args, [self.xtffile])
518519

520+
if self.plugins_dir:
521+
self.append_args(args, ["--plugins", self.plugins_dir])
522+
519523
self.append_args(args, Ili2DbCommandConfiguration.to_ili2db_args(self))
520524

521525
return args

0 commit comments

Comments
 (0)