From 2e937f4a2455b53afcece0c72d6d970e172c4389 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Sat, 2 Apr 2022 20:11:23 +0200 Subject: [PATCH] Change "manage.py" shebang and use always the right venv python --- conf/manage.py | 2 +- scripts/install | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/manage.py b/conf/manage.py index a85e3b1..9962cbd 100755 --- a/conf/manage.py +++ b/conf/manage.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!__FINAL_HOME_PATH__/venv/bin/python import os import sys diff --git a/scripts/install b/scripts/install index de6020a..a8934d6 100755 --- a/scripts/install +++ b/scripts/install @@ -135,6 +135,8 @@ ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_f ynh_store_file_checksum --file="$gunicorn_conf" cp ../conf/manage.py "$final_path/manage.py" +ynh_replace_string --match_string="__FINAL_HOME_PATH__" --replace_string="$final_path" --target_file="$final_path/manage.py" +ynh_store_file_checksum --file="$final_path/manage.py" chmod +x "$final_path/manage.py" settings="$final_path/settings.py"