daemon: add core python environment variable to be able to refer to the virtual environment executable
This commit is contained in:
parent
06e43f619d
commit
f41ce8e3a6
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue