daemon: add core python environment variable to be able to refer to the virtual environment executable

This commit is contained in:
Blake Harnden 2020-08-03 16:04:07 -07:00
parent 06e43f619d
commit f41ce8e3a6

View file

@ -8,6 +8,7 @@ import os
import pwd
import shutil
import subprocess
import sys
import tempfile
import threading
import time
@ -991,6 +992,7 @@ class Session:
:return: environment variables
"""
env = os.environ.copy()
env["CORE_PYTHON"] = sys.executable
env["SESSION"] = str(self.id)
env["SESSION_SHORT"] = self.short_session_id()
env["SESSION_DIR"] = self.session_dir