add p4a.port config option; to allow specifiying webview

This commit is contained in:
Robin Becker 2017-11-28 14:08:47 +00:00
parent 3a93783aa8
commit ff8cf7893f

View file

@ -31,6 +31,9 @@ class TargetAndroidNew(TargetAndroid):
hook = self.buildozer.config.getdefault("app", "p4a.hook", None)
if hook is not None:
self.extra_p4a_args += ' --hook={}'.format(realpath(hook))
port = self.buildozer.config.getdefault('app', 'p4a.port', None)
if port is not None:
self.extra_p4a_args += ' --port={}'.format(port)
def _p4a(self, cmd, **kwargs):
if not hasattr(self, "pa_dir"):