@@ -500,6 +500,10 @@ def execute_osm2pgsql(context, output):
500500 data_stdin = None
501501
502502 env = {}
503+ if context .user_args .lua_path :
504+ env ['LUA_PATH' ] = context .user_args .lua_path
505+ if context .user_args .themepark_path :
506+ env ['THEMEPARK_PATH' ] = context .user_args .themepark_path
503507
504508 proc = Popen (cmdline , cwd = str (context .workdir ),
505509 stdin = PIPE , stdout = PIPE , stderr = PIPE , env = env )
@@ -785,6 +789,10 @@ def get_parser():
785789 help = '(optional) directory to search for test data' )
786790 parser .add_argument ('--style-data-dir' , type = Path ,
787791 help = '(optional) directory to search for style files' )
792+ parser .add_argument ('--lua-path' ,
793+ help = 'Additional paths to take into account for finding lua modules' )
794+ parser .add_argument ('--themepark-path' ,
795+ help = 'Additional paths to take into account for finding themepark themes' )
788796 parser .add_argument ('--test-db' , default = 'osm2pgsql-test' ,
789797 help = 'Name of database to use for testing (default: osm2pgsql-test)' )
790798 parser .add_argument ('--template-test-db' , default = 'osm2pgsql-test-template' ,
0 commit comments