Merge pull request #588 from replabrobin/master

add p4a.port config option; to allow specifiying webview port
This commit is contained in:
Mathieu Virbel 2017-12-15 15:59:50 +01:00 committed by GitHub
commit 4935739c84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"):