diff --git a/runtime/pgAdmin4.pro b/runtime/pgAdmin4.pro index 0bd0f6078..065991ed2 100644 --- a/runtime/pgAdmin4.pro +++ b/runtime/pgAdmin4.pro @@ -49,8 +49,13 @@ else { message(Building for Linux/Mac...) # Find and configure Python + # Environment setting + PYTHON_CONFIG = $$(PYTHON_CONFIG) + # Python 2? - PYTHON_CONFIG = $$system(which python-config) + isEmpty(PYTHON_CONFIG) { + PYTHON_CONFIG = $$system(which python-config) + } # Maybe Python 3? isEmpty(PYTHON_CONFIG) {