From 27c076fc5b70a4f3a03821cede1861515e7d9b91 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Thu, 22 Dec 2016 13:30:53 +0100 Subject: [PATCH 1/2] Use Python buildpack in order to have a recent Python version --- requirements.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e69de29 From 02e58c239fe3fe297dad415a92328e5a4e189bfe Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Thu, 22 Dec 2016 13:46:31 +0100 Subject: [PATCH 2/2] Allow Python to be set from environment variable --- classes/Config.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/Config.php b/classes/Config.php index 87fdf10..c57c848 100644 --- a/classes/Config.php +++ b/classes/Config.php @@ -109,6 +109,9 @@ class Config if (getenv('CONVERT')) { $this->convert = (bool) getenv('CONVERT'); } + if (getenv('PYTHON')) { + $this->python = getenv('PYTHON'); + } } /**